-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
66 lines (63 loc) · 1.68 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: "3"
services:
postgres:
container_name: "kachnaonline-postgres"
hostname: "postgres"
image: "docker.io/postgres:16"
restart: unless-stopped
expose:
- "5432"
ports:
# Avoid clashes with localhost postgres
- "6543:5432"
volumes:
- database-data:/var/lib/postgresql/data/
env_file:
- docker/database.env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U kachna"]
interval: 5s
timeout: 5s
retries: 5
api:
build:
context: ./KachnaOnline.App
dockerfile: Dockerfile.development
args:
UID: "${UID:-1000}"
GID: "${GID:-1000}"
restart: unless-stopped
volumes:
- ./:/src:z
env_file:
- docker/api.env
ports:
- "5000:5000"
- "5001:5001"
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -k https://localhost:5001/kachna/api/states/current"]
interval: 5s
timeout: 5s
retries: 5
command: "${DOTNET_ARGS:-}"
frontend:
build:
dockerfile: Dockerfile.development
context: ./ClientApp/KachnaOnline
restart: unless-stopped
volumes:
- ./ClientApp/KachnaOnline/:/src:z
ports:
- "4200:4200"
depends_on:
api:
condition: service_healthy
volumes:
database-data:
networks:
default:
driver_opts:
isolate: "true"