forked from SEED-platform/seed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
89 lines (89 loc) · 2.42 KB
/
Copy pathdocker-compose.yml
File metadata and controls
89 lines (89 loc) · 2.42 KB
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
# 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:
image: timescale/timescaledb-postgis:latest-pg12
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:
image: redis:5.0.1
web:
image: seedplatform/seed:latest
build: .
environment:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SES_REGION_NAME
- AWS_SES_REGION_ENDPOINT
- SERVER_EMAIL
- POSTGRES_DB=seed
- POSTGRES_PORT=5432
- POSTGRES_USER=seed
- POSTGRES_PASSWORD=super-secret-password
# - REDIS_PASSWORD=optional-need-to-configure-redis
- SEED_ADMIN_USER=user@seed-platform.org
- SEED_ADMIN_PASSWORD=super-secret-password
- SEED_ADMIN_ORG=default
- SECRET_KEY=ARQV8qGuJKH8sGnBf6ZeEdJQRKLTUhsvEcp8qG9X9sCPXvGLhdxqnNXpZcy6HEyf
- 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'
web-celery:
image: seedplatform/seed:latest
build: .
command: /seed/docker/start_celery_docker.sh
environment:
- 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
- NUMBER_OF_WORKERS
depends_on:
- db-redis
- db-postgres
- web
volumes:
- seed_media:/seed/media
logging:
options:
max-size: 50m
max-file: '5'
#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: seedplatform/oep:1.6
# depends_on:
# - web
# environment:
# - OEP_DISABLED=true
# logging:
# options:
# max-size: 50m
# max-file: '5'
volumes:
seed_pgdata:
external: true
seed_media:
external: true