-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (47 loc) · 1018 Bytes
/
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
version: '3.8'
services:
app-server:
build:
context: backend/cash-control-server/
dockerfile: Dockerfile
ports:
- "8080:8080"
restart: always
depends_on:
- db
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/cash_control
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: root
networks:
- backend
- frontend
app-client:
build:
context: frontend/cash-control-client/
dockerfile: Dockerfile
ports:
- "3000:3000"
restart: always
depends_on:
- app-server
networks:
- frontend
db:
image: postgres:14.2-alpine
ports:
- "5432:5432"
restart: always
environment:
POSTGRES_PASSWORD: root
POSTGRES_USER: postgres
POSTGRES_DB: cash_control
volumes:
- ./db-data:/var/lib/postgresql
networks:
- backend
volumes:
db-data:
networks:
backend:
frontend: