-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (56 loc) · 1.15 KB
/
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
52
53
54
55
56
57
58
59
60
services:
postgres:
image: postgres:16-alpine
env_file:
- database/.env
volumes:
- db-data:/var/lib/postgresql/data
networks:
- back-network
restart: always
ports:
- "5433:5432"
back:
platform: linux/amd64
build:
context: ./
dockerfile: ./apps/back/Dockerfile
command: >
bash -c "npm install; npm run back:dev"
image: seminar-back-image
container_name: back
env_file:
- apps/back/.env
ports:
- "4000:4000"
depends_on:
- postgres
networks:
- back-network
volumes:
- ./apps/back/src:/seminar/apps/back/src
restart: always
front:
build:
context: ./
dockerfile: ./apps/front/Dockerfile
command: >
bash -c "npm install; npm run front:dev"
image: seminar-front-image
container_name: front
env_file:
- apps/front/.env
ports:
- "3000:3000"
depends_on:
- back
networks:
- back-network
volumes:
- ./apps/front/src:/seminar/apps/front/src
- ./apps/front/public:/seminar/apps/public
restart: always
volumes:
db-data:
networks:
back-network: