-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (43 loc) · 1007 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
41
42
43
44
45
46
47
# SPDX-FileCopyrightText: 2024 Gerald Wiese <[email protected]>
# SPDX-FileCopyrightText: 2024 Leibniz University Hannover
#
# SPDX-License-Identifier: GPL-3.0-or-later
version: '3'
services:
db:
image: postgres:16.2
restart: always
volumes:
- db-data:/var/lib/postgresql/data
- ./db-log:/var/log/postgresql
environment:
POSTGRES_USER: "gnuhealth"
POSTGRES_PASSWORD: "gnusolidario"
POSTGRES_DB: "health"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U gnuhealth -d health" ]
interval: 1s
timeout: 3s
retries: 5
app:
build: ./gnuhealth
depends_on:
db:
condition: service_healthy
volumes:
- app-data:/opt/gnuhealth/var/lib
- ./app-log:/opt/gnuhealth/var/log
web:
image: nginx:1.25.4
depends_on:
- db
- app
ports:
- 80:80
#- 8443:443
volumes:
- ./web-site:/etc/nginx/conf.d
- ./web-log:/var/log/nginx
volumes:
db-data:
app-data: