-
Notifications
You must be signed in to change notification settings - Fork 30
/
local.yml
87 lines (80 loc) · 1.91 KB
/
local.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: '3'
volumes:
local_postgres_data: {}
production_traefik: {}
services:
django: &django
build:
context: .
dockerfile: ./compose/production/django/Dockerfile
image: gcr.io/proven-record-242223/open:latest
# watch out for sequential failures, postgres will quickly lock up
# restart: on-failure
# restart: no
depends_on:
- postgres
volumes:
- .:/app
env_file:
- ./.envs/.local/.django
environment:
WEB_APP: host.docker.internal
ports:
- "0.0.0.0:5000:5000"
command: /local_django_start.sh
postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: open_production_postgres
# always keep postgres on, it's easier that way
restart: always
volumes:
- local_postgres_data:/var/lib/postgresql/data
- .:/app
env_file:
- ./.envs/.local/.django
ports:
# 5432 is freq taken by some other instance running postgres
# i have too many side projects ... so i kind of have to use a random port
- "25432:5432"
redis:
image: redis:5.0
# traefik:
# build:
# context: .
# dockerfile: ./compose/production/traefik/Dockerfile
# depends_on:
# - django
# ports:
# - "0.0.0.0:80:80"
# celeryworker:
# <<: *django
# image: open_local_celeryworker
# depends_on:
# - redis
# - postgres
# - mailhog
# ports: []
# command: /start-celeryworker.sh
# celeryworker:
# image: gcr.io/proven-record-242223/open:latest
# depends_on:
# - redis
# - postgres
# env_file:
# - ./.envs/.local/.django
# volumes:
# - .:/app
# command: /start-celeryworker.sh
#
# celerybeat:
# image: gcr.io/proven-record-242223/open:latest
# depends_on:
# - redis
# - postgres
# env_file:
# - ./.envs/.local/.django
# volumes:
# - .:/app
# command: /start-celerybeat.sh