-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (75 loc) · 1.66 KB
/
docker-compose.yml
File metadata and controls
81 lines (75 loc) · 1.66 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
services:
postgres:
image: postgres:16
container_name: sentinelstack-postgres
env_file:
- .env
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./postgres/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 10
logging-service:
build:
context: ./services/logging-service
container_name: sentinelstack-logging-service
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
expose:
- "8000"
portguard-service:
build:
context: ./services/portguard-service
container_name: sentinelstack-portguard-service
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
logging-service:
condition: service_started
expose:
- "8000"
demo-app:
build:
context: ./services/demo-app
container_name: sentinelstack-demo-app
env_file:
- .env
depends_on:
- logging-service
expose:
- "8000"
frontend:
build:
context: ./frontend
container_name: sentinelstack-frontend
env_file:
- .env
depends_on:
- logging-service
- portguard-service
expose:
- "3000"
nginx:
image: nginx:1.27-alpine
container_name: sentinelstack-nginx
depends_on:
- demo-app
- logging-service
- portguard-service
- frontend
ports:
- "8080:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
volumes:
postgres_data: