-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
49 lines (45 loc) · 1.38 KB
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
services:
fhi.handhygiene.admin:
image: ${DOCKER_REGISTRY-}hyfive-admin
build:
context: .
dockerfile: Dockerfile.admin
depends_on:
database:
condition: service_healthy
environment:
- ASPNETCORE_URLS=http://+:8080 # Add ;https://+:8443 for https support
- ConnectionStrings__HandhygieneConnection=Server=database; Database=HandHygiene; Username=handhygiene; Password=SomeB4DSecur1ty; SSLMode=disable
ports:
- 8081:8080
fhi.handhygiene.observasjon:
image: ${DOCKER_REGISTRY-}hyfive-observation
build:
context: .
dockerfile: Dockerfile.observation
depends_on:
database:
condition: service_healthy
environment:
- ASPNETCORE_URLS=http://+:8080 # Add ;https://+:8443 for https support
- ConnectionStrings__HandhygieneConnection=Server=database; Database=HandHygiene; Username=handhygiene; Password=SomeB4DSecur1ty; SSLMode=disable
ports:
- 8080:8080
database:
image: postgres:17.2
environment:
POSTGRES_DB: HandHygiene
POSTGRES_USER: handhygiene
POSTGRES_PASSWORD: SomeB4DSecur1ty
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 2
start_period: 10s
volumes:
- db-data:/var/lib/postgresql/data:rw
ports:
- 5432:5432
volumes:
db-data: