-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.local.yml
132 lines (131 loc) · 3.11 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
123
124
125
126
127
128
129
130
131
132
# 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.4"
services:
db-postgres:
container_name: seed_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"
restart: unless-stopped
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
db-redis:
container_name: seed_redis
image: 127.0.0.1:5000/redis
logging:
options:
max-size: 50m
max-file: "5"
restart: unless-stopped
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
web:
container_name: seed_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
# - REDIS_HOST
# - WEB_HOST
- SEED_ADMIN_USER
- SEED_ADMIN_PASSWORD
- SEED_ADMIN_ORG
- SECRET_KEY
# Pass the Sentry config to the containers
- SENTRY_RAVEN_DSN
- SENTRY_JS_DSN
- DJANGO_SETTINGS_MODULE=config.settings.docker
# Recaptcha for testing:
# https://developers.google.com/recaptcha/docs/faq#id-like-to-run-automated-tests-with-recaptcha.-what-should-i-do
- GOOGLE_RECAPTCHA_SITE_KEY=6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
- GOOGLE_RECAPTCHA_SECRET_KEY=6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
depends_on:
- db-redis
- db-postgres
volumes:
- seed_media:/seed/media
ports:
- "80:80"
logging:
options:
max-size: 50m
max-file: "5"
restart: unless-stopped
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
web-celery:
container_name: seed_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"
restart: unless-stopped
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
volumes:
seed_pgdata:
external: true
seed_media:
external: true