-
Notifications
You must be signed in to change notification settings - Fork 30
/
production.yml
47 lines (42 loc) · 1.18 KB
/
production.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
version: '3'
services:
django: &django
build:
context: .
dockerfile: ./compose/production/django/Dockerfile
image: gcr.io/proven-record-242223/open:latest
env_file:
- ./credentials/open/production/django.txt
command: /start.sh
volumes:
- .:/app
depends_on:
- cloud-sql-proxy
traefik:
build:
context: .
dockerfile: ./compose/production/traefik/Dockerfile
image: gcr.io/proven-record-242223/open_traefik:latest
depends_on:
- django
ports:
# SSL termination happens at the LB layer, all traffic here is http
- "0.0.0.0:80:80"
cloud-sql-proxy:
image: gcr.io/cloudsql-docker/gce-proxy:1.11
command: >
/cloud_sql_proxy -instances=proven-record-242223:us-east1:open-b522b437=tcp:0.0.0.0:5432
-credential_file /root/.config/senrigan_gcp_sql_access.json
volumes:
- ./credentials/open/production/:/root/.config
ports:
- 5432:5432
celeryworker:
image: gcr.io/proven-record-242223/open:latest
env_file:
- ./credentials/open/production/django.txt
volumes:
- .:/app
command: /start-celeryworker.sh
depends_on:
- cloud-sql-proxy