-
Notifications
You must be signed in to change notification settings - Fork 54
/
docker-compose.local.yml
122 lines (121 loc) · 2.73 KB
/
docker-compose.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# Docker Compose for deployment using a local registry.
# Must set the following environment variables
# POSTGRES_DB
# POSTGRES_PORT
# POSTGRES_USER
# POSTGRES_PASSWORD
# SEED_ADMIN_USER
# SEED_ADMIN_PASSWORD
# SEED_ADMIN_ORG
# SECRET_KEY
version: '3'
services:
db-postgres:
image: 127.0.0.1:5000/postgres-seed
environment:
- POSTGRES_DB
- POSTGRES_USER
- POSTGRES_PASSWORD
volumes:
- seed_pgdata:/var/lib/postgresql/data
- $HOME/seed-backups:/backups
ports:
- "5432:5432"
logging:
options:
max-size: 50m
max-file: '5'
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
db-redis:
image: 127.0.0.1:5000/redis
logging:
options:
max-size: 50m
max-file: '5'
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
web:
image: 127.0.0.1:5000/seed
environment:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SES_REGION_NAME
- AWS_SES_REGION_ENDPOINT
- SERVER_EMAIL
- POSTGRES_DB
- POSTGRES_PORT=5432
- POSTGRES_USER
- POSTGRES_PASSWORD
# - REDIS_PASSWORD
- SEED_ADMIN_USER
- SEED_ADMIN_PASSWORD
- SEED_ADMIN_ORG
- SECRET_KEY
- SENTRY_JS_DSN
- SENTRY_RAVEN_DSN
- DJANGO_SETTINGS_MODULE=config.settings.docker
depends_on:
- db-redis
- db-postgres
volumes:
- seed_media:/seed/media
ports:
- "80:80"
logging:
options:
max-size: 50m
max-file: '5'
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
web-celery:
image: 127.0.0.1:5000/seed
environment:
- POSTGRES_DB
- POSTGRES_PORT=5432
- POSTGRES_USER
- POSTGRES_PASSWORD
- SECRET_KEY
- SENTRY_JS_DSN
- SENTRY_RAVEN_DSN
- DJANGO_SETTINGS_MODULE=config.settings.docker
- NUMBER_OF_WORKERS
depends_on:
- db-redis
- db-postgres
- web
volumes:
- seed_media:/seed/media
command: /seed/docker/start_celery_docker.sh
logging:
options:
max-size: 50m
max-file: '5'
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
#oep-city-1:
# This is a placeholder. If needed, follow the instructions to enable: https://cloud.docker.com/u/seedplatform/repository/docker/seedplatform/oep
#image: 127.0.0.1:5000/oep
#environment:
# - OEP_DISABLED=true
volumes:
seed_pgdata:
external: true
seed_media:
external: true