-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.prod.yaml
71 lines (65 loc) · 2.04 KB
/
docker-compose.prod.yaml
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
services:
climsoft_nginx_proxy:
image: patowiz/climsoft-nginx-proxy
container_name: climsoft-nginx-proxy
restart: always
ports: # Expose to external network
- "${HOST_HTTP_PORT}:80"
depends_on:
- climsoft_pwa
- climsoft_api
networks:
- climsoft_network
climsoft_pwa:
image: patowiz/climsoft-pwa
container_name: climsoft-pwa
restart: always
environment:
HOST_IP_ADDRESS: "${HOST_IP_ADDRESS}" # used in config.json.
HOST_HTTP_PORT: "${HOST_HTTP_PORT}" # used in config.json.
expose:
- 80 # Expose to internal network only.
depends_on:
- climsoft_api
networks:
- climsoft_network
climsoft_api:
image: patowiz/climsoft-api
container_name: climsoft-api
restart: always
environment:
DB_HOST: climsoft_db
DB_PORT: 5432
DB_NAME: climsoft
DB_USERNAME: postgres
DB_PASSWORD: "${DB_PASSWORD}"
V4_SAVE: "${V4_SAVE}"
V4_DB_PORT: "${V4_DB_PORT}"
V4_DB_NAME: "${V4_DB_NAME}"
V4_DB_USERNAME: "${V4_DB_USERNAME}"
V4_DB_PASSWORD: "${V4_DB_PASSWORD}"
V4_DB_UTCOFFSET: "${V4_DB_UTCOFFSET}"
expose:
- 3000 # Expose to internal network only. Communication to the API can go through the nginx reverse proxy.
depends_on:
- climsoft_db
networks:
- climsoft_network
climsoft_db:
image: postgis/postgis:17-3.4
container_name: climsoft-db
restart: always
environment:
POSTGRES_DB: climsoft # Default database postgres will create, required when setting up postgres the first time.
POSTGRES_USER: postgres # Uses the default postgres username for simplicity, required when setting up postgres the first time.
POSTGRES_PASSWORD: ${DB_PASSWORD} # Super user password, required when setting up postgres the first time.
ports:
- "5432:5432" # Expose to both external and internal network.
volumes:
- climsoft_data:/var/lib/postgresql/data
networks:
- climsoft_network
volumes:
climsoft_data:
networks:
climsoft_network: