-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
114 lines (114 loc) · 3.64 KB
/
docker-compose.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
# Docker Compose creates multiple containers on a single machine.
# run `docker-compose up` to create and run/link the containers
version: "3.4"
services:
db-postgres:
container_name: seed_postgres
image: timescale/timescaledb-postgis:latest-pg12
restart: unless-stopped
environment:
- POSTGRES_DB=seed
- POSTGRES_USER=seed
- POSTGRES_PASSWORD=super-secret-password
volumes:
- seed_pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
logging:
options:
max-size: 50m
max-file: "5"
db-redis:
container_name: seed_redis
image: redis:5.0.1
restart: unless-stopped
web:
container_name: seed_web
image: seedplatform/seed:latest
restart: unless-stopped
build: .
environment:
- USE_S3
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_STORAGE_BUCKET_NAME
- AWS_S3_REGION_NAME
- AWS_S3_SIGNATURE_VERSION=s3v4
- AWS_SES_REGION_NAME
- AWS_SES_REGION_ENDPOINT
- BSYNCR_SERVER_HOST
- BSYNCR_SERVER_PORT
- SERVER_EMAIL
- POSTGRES_DB=seed
- POSTGRES_PORT=5432
- POSTGRES_USER=seed
- POSTGRES_PASSWORD=super-secret-password
# - REDIS_HOST=optional-need-to-configure-redis
# - REDIS_PASSWORD=optional-need-to-configure-redis
# - WEB_HOST=optional-if-web-container-not-named-web
- SEED_ADMIN_PASSWORD=super-secret-password
- SEED_ADMIN_ORG=default
- SECRET_KEY=ARQV8qGuJKH8sGnBf6ZeEdJQRKLTUhsvEcp8qG9X9sCPXvGLhdxqnNXpZcy6HEyf
- DJANGO_SETTINGS_MODULE=config.settings.docker
# Sentry configuration if you want to use it (make sure to enable on web-celery container too)
# - SENTRY_RAVEN_DSN=https://<userid>@<ordid>.ingest.sentry.io/<jobid>
# - SENTRY_JS_DSN=https://<userid>@<ordid>.ingest.sentry.io/<jobid>
# 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:
- "8090:80"
logging:
options:
max-size: 50m
max-file: "5"
web-celery:
container_name: seed_celery
image: seedplatform/seed:latest
restart: unless-stopped
build: .
command: /seed/docker/start_celery_docker.sh
environment:
- USE_S3
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_STORAGE_BUCKET_NAME
- AWS_S3_REGION_NAME
- AWS_S3_SIGNATURE_VERSION=s3v4
- AWS_SES_REGION_NAME
- AWS_SES_REGION_ENDPOINT
- BSYNCR_SERVER_HOST
- BSYNCR_SERVER_PORT
- POSTGRES_DB=seed
- POSTGRES_PORT=5432
- POSTGRES_USER=seed
- POSTGRES_PASSWORD=super-secret-password
# - REDIS_PASSWORD=optional-need-to-configure-redis
- SECRET_KEY=ARQV8qGuJKH8sGnBf6ZeEdJQRKLTUhsvEcp8qG9X9sCPXvGLhdxqnNXpZcy6HEyf
- DJANGO_SETTINGS_MODULE=config.settings.docker
# Sentry configuration if you want to use it (make sure to enable on web container too)
# - SENTRY_RAVEN_DSN=https://<userid>@<ordid>.ingest.sentry.io/<jobid>
# - SENTRY_JS_DSN=https://<userid>@<ordid>.ingest.sentry.io/<jobid>
- NUMBER_OF_WORKERS
depends_on:
- db-redis
- db-postgres
- web
volumes:
- seed_media:/seed/media
logging:
options:
max-size: 50m
max-file: "5"
volumes:
seed_pgdata:
external: true
seed_media:
external: true