-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (37 loc) · 903 Bytes
/
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
version: '3.8'
services:
db:
image: postgis/postgis:12-3.0-alpine
restart: always
environment:
POSTGRES_DB: ${DATABASE_NAME}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_USER: ${DATABASE_USER}
volumes:
- "/var/lib/postgresql/explore:/var/lib/postgresql/data"
web:
build: .
command: uwsgi --ini config/uwsgi/explore_uwsgi.ini
environment:
CERT_FILE: ${CERT_FILE}
CERT_KEY_FILE: ${CERT_KEY_FILE}
volumes:
- .:/code
- ${CERT_DIR}:/etc/certs
depends_on:
- db
nginx:
image: nginx:1.19.3
container_name: ng
environment:
NGINX_HOST: ${EXTERNAL_HOST}
CERT_FILE: ${CERT_FILE}
CERT_KEY_FILE: ${CERT_KEY_FILE}
ports:
- "443:443"
- "80:80"
volumes:
- ./config/nginx/templates:/etc/nginx/templates
- ${CERT_DIR}:/etc/certs
depends_on:
- web