-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (45 loc) · 912 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
51
version: '3'
services:
database:
image: postgres:latest
container_name: db
volumes:
- ./tmp/db:/var/lib/postgresql/data
environment:
POSTGRES_USER: work_shift
POSTGRES_PASSWORD: 137278
networks:
- work_shift_network
api:
build: work_shift_api
container_name: backend
hostname: api
image: work_shift_api
entrypoint: /app/entrypoint.sh
stdin_open: true
tty: true
working_dir: /app
volumes:
- ./api:/api
depends_on:
- database
networks:
- work_shift_network
ports:
- '3030:3030'
client:
build: work_shift_client
container_name: frontend
hostname: client
image: work_shift_client
ports:
- "5050:5050"
volumes:
- ./client:/client
networks:
- work_shift_network
volumes:
postgres_data:
networks:
work_shift_network:
driver: bridge