-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-gsql.yml
56 lines (47 loc) · 1.29 KB
/
docker-compose-gsql.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: "3.3"
services:
django:
build: .
container_name: django
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py collectstatic --no-input && daphne -b 0.0.0.0 -p 8000 config.asgi:application"
volumes:
- .:/usr/src/app/
ports:
- "7000:8000"
env_file:
- .env
depends_on:
- cloud-sql-proxy
- redis
celery:
build: .
command: celery -A config.celery_app worker
volumes:
- .:/usr/src/app
env_file:
- .env
depends_on:
- django
- redis
celery-beat:
build: .
command: celery -A config.celery_app beat
volumes:
- .:/usr/src/app
env_file:
- .env
depends_on:
- django
- celery
- redis
cloud-sql-proxy:
image: gcr.io/cloudsql-docker/gce-proxy:1.11
command: /cloud_sql_proxy -instances=main-291913:europe-west2:fileshare=tcp:0.0.0.0:5474 -credential_file=/config
volumes:
- ./credentials.json:/config
ports:
- 5474:5474
redis:
image: "redis:alpine"
# volumes:
# pgdata: