-
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) · 907 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (45 loc) · 907 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
services:
db:
container_name: db
image: postgres
environment:
POSTGRES_USER: nicusor
POSTGRES_PASSWORD: password
PGDATA: /data/postgres
volumes:
- db:/data/postgres
ports:
- 5432:5432
networks:
- db
restart: unless-stopped
api:
container_name: api
image: nicus0r/school-management-sys-api
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/postgres
SPRING_PROFILES_ACTIVE: preview
ports:
- 8080:8080
networks:
- db
restart: unless-stopped
depends_on:
- db
client:
container_name: client
image: nicus0r/school-management-sys-client
build:
context: frontend
args:
api_base_url: http://localhost:8080
ports:
- 3000:5173
depends_on:
- api
restart: unless-stopped
networks:
db:
driver: bridge
volumes:
db: