-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1021 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (48 loc) · 1021 Bytes
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
services:
container-management:
image: mostafaewida/hackmaze_container_management:latest
pull_policy: always
restart: always
ports:
- "8080:80"
env_file:
- .env
backend:
restart: always
pull_policy: always
env_file:
- .env
ports:
- "4444:4444"
image: mostafaewida/hackmaze_backend_spring:latest
depends_on:
- db
frontend:
build:
context: .
ports:
- "80:80"
volumes:
- ./src/assets/config.js:/usr/share/nginx/html/config.js
depends_on:
- backend
db:
image: postgres:16
pull_policy: always
restart: always
env_file:
- .env
ports:
- "5432:5432"
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- db_data:/var/lib/postgresql/data/pgdata
volumes:
db_data:
name: db_data