-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose-production.yml
68 lines (61 loc) · 1.36 KB
/
docker-compose-production.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
version: "3.7"
services:
postgis:
image: kartoza/postgis:11.0-2.5
ports:
- "55432:5432"
environment:
POSTGRES_USER: ${QGISFEED_DOCKER_DBUSER}
POSTGRES_PASS: ${QGISFEED_DOCKER_DBPASSWORD}
POSTGRES_DBNAME: ${QGISFEED_DOCKER_DBNAME}
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
restart: always
volumes:
- ${QGISFEED_DOCKER_SHARED_VOLUME}:/var/lib/postgresql
networks:
internal:
qgisfeed:
image: qgisfeed:production
build:
context: .
dockerfile: Dockerfile.production
environment:
- QGISFEED_DOCKER_DBNAME
- QGISFEED_DOCKER_DBUSER
- QGISFEED_DOCKER_DBPASSWORD
command: /code/entrypoint_production.sh
expose:
- "8000"
volumes:
- ${QGISFEED_DOCKER_SHARED_VOLUME}:/shared-volume
depends_on:
- postgis
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
restart: always
networks:
internal:
nginx:
image: nginx:latest
ports:
- "80:8000"
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
volumes:
- ${QGISFEED_DOCKER_SHARED_VOLUME}:/shared-volume
- ./config/nginx:/etc/nginx/conf.d
restart: always
networks:
internal:
networks:
internal: