Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (69 loc) · 1.56 KB
/
Copy pathdocker-compose.yml
File metadata and controls
77 lines (69 loc) · 1.56 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
networks:
codesoverign-network:
volumes:
codesoverign_data:
services:
database:
image: postgres:17.2-bookworm
container_name: codeSov-db
environment:
POSTGRES_DB: soverign
POSTGRES_USER: soverign
POSTGRES_PASSWORD: postgressoverign
volumes:
- codesoverign_data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- codesoverign-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U soverign -d soverign"]
interval: 5s
timeout: 5s
retries: 10
npm_install:
image: node:23.7.0-alpine3.20
container_name: codeSov-install
volumes:
- .:/app
working_dir: /app
command: ["npm", "run","install:all"]
healthcheck:
test: ["CMD-SHELL", "npm list"]
interval: 5s
timeout: 5s
retries: 10
dinit:
profiles: ["dinit"]
image: node:23.7.0-alpine3.20
container_name: codeSov-dinit
environment:
DB_URL: database
volumes:
- .:/app
working_dir: /app
command: ["npm", "run","dinit"]
depends_on:
database:
condition: service_healthy
npm_install:
condition: service_healthy
networks:
- codesoverign-network
app:
image: node:23.7.0-alpine3.20
container_name: codeSov-app
environment:
DB_URL: database
ports:
- "5173:5173"
- "5000:5000"
volumes:
- .:/app
working_dir: /app
command: ["npm", "run","dev"]
depends_on:
database:
condition: service_healthy
networks:
- codesoverign-network