-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
57 lines (57 loc) · 1.31 KB
/
docker-compose.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
services:
db:
platform: 'linux/amd64'
container_name: verdd-db-django-local
image: mariadb:latest
environment:
- MARIADB_ROOT_PASSWORD=verdd
- MARIADB_DATABASE=verdd
- MARIADB_USER=verdd
- MARIADB_PASSWORD=verdd
healthcheck:
test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
volumes:
- db-data:/var/lib/mysql
redis:
platform: 'linux/amd64'
container_name: verdd-redis
image: redis:latest
ports:
- "6379:6379"
backend:
platform: 'linux/amd64'
container_name: verdd-backend-django-local
build: .
command: python manage.py runserver 0.0.0.0:8000 --settings=verdd.settings.production
volumes:
- .:/app
- verdd-files:/tmp/verdd_files
ports:
- "127.0.0.1:8000:8000"
env_file:
- ./.env
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
worker:
platform: 'linux/amd64'
container_name: verdd-celery-worker
build: .
command: celery -A verdd worker --loglevel=info
volumes:
- .:/app
- verdd-files:/tmp/verdd_files
env_file:
- ./.env
depends_on:
- redis
- db
volumes:
db-data:
verdd-files: