-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
97 lines (88 loc) · 2.33 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
version: '3'
x-ifcb-common: &ifcb-common
image: ${IFCBDB_IMAGE:-whoi/ifcb-dashboard:4.3.0}
environment:
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY:-changeme}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-ifcb}
volumes:
- ${PRIMARY_DATA_DIR:-./ifcb_data}:/data
- ${LOCAL_SETTINGS:-/dev/null}:/ifcbdb/ifcbdb/local_settings.py
depends_on:
- postgres
- memcached
- redis
networks:
- postgres_network
- memcached_network
- redis_network
services:
ifcbdb:
<<: *ifcb-common
environment:
- NGINX_HOST=${HOST:-localhost}
- NGINX_HTTP_PORT=${HTTP_PORT:-80}
- NGINX_HTTPS_PORT=${HTTPS_PORT:-443}
- DEFAULT_DATASET=${DEFAULT_DATASET:-}
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY:-changeme}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-ifcb}
volumes:
- nginx-static:/static
- ${PRIMARY_DATA_DIR:-./ifcb_data}:/data
- ${LOCAL_SETTINGS:-/dev/null}:/ifcbdb/ifcbdb/local_settings.py
networks:
- nginx_network
- postgres_network
- memcached_network
- redis_network
celery:
<<: *ifcb-common
command: celery -A ifcbdb worker -l info
nginx:
image: ${NGINX_IMAGE:-nginx:1.25}
environment:
- NGINX_HOST=${HOST:-localhost}
- NGINX_HTTP_PORT=${HTTP_PORT:-80}
- NGINX_HTTPS_PORT=${HTTPS_PORT:-443}
ports:
- ${HTTP_PORT:-80}:80
- ${HTTPS_PORT:-443}:443
volumes:
- ${NGINX_TEMPLATE:-./nginx-ssl.conf.template}:/etc/nginx/templates/default.conf.template
- nginx-static:/static
- ${SSL_KEY}:/ssl/ssl.key:ro
- ${SSL_CERT}:/ssl/ssl.cer:ro
depends_on:
- ifcbdb
networks:
- nginx_network
postgres:
image: ${POSTGIS_IMAGE:-postgis/postgis:16-3.4}
environment:
- POSTGRES_USER=ifcb
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-ifcb}
- POSTGRES_DB=ifcb
volumes:
- postgis-data:/var/lib/postgresql/data
networks:
- postgres_network
memcached:
image: ${MEMCACHED_IMAGE:-memcached:1.6}
command: ["-m", "64m"]
networks:
- memcached_network
redis:
image: ${REDIS_IMAGE:-redis:7.2}
networks:
- redis_network
networks:
nginx_network:
driver: bridge
postgres_network:
driver: bridge
memcached_network:
driver: bridge
redis_network:
driver: bridge
volumes:
postgis-data:
nginx-static: