-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
34 lines (31 loc) · 1021 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: '3.8'
services:
danboorutools:
container_name: danboorutools
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
init: true # protects from chromedriver zombie processes
command: poetry run watchmedo auto-restart -d /code/danboorutools -p="*" -R -- celery -- -A danboorutools.celery_tasks.tasks worker -B --loglevel=INFO -s /tmp/celerybeat-schedule --autoscale=10,1
volumes:
# development
- ./danboorutools:/code/danboorutools/:ro
- ./pyproject.toml:/code/pyproject.toml:ro
- ./poetry.lock:/code/poetry.lock:ro
- ./sock_config.yaml:/code/sock_config.yaml
- ./logs:/code/logs/
- ./data:/code/data/
- ./tests:/code/tests:ro
- ./cookies:/code/cookies/
- ./screenshots:/code/screenshots/
- ./.ipython:/home/danboorutools/.ipython # ipython interpreter history persistence
tmpfs:
- /tmp
redis:
image: redis
restart: always
mail:
image: bytemark/smtp
restart: always