forked from CarnegieLearningWeb/UpGrade
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
54 lines (50 loc) · 1.02 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
services:
frontend:
build:
context: .
dockerfile: ./frontend/dev.Dockerfile
image: upgrade-frontend:latest
user: "node"
environment:
- NODE_ENV=development
volumes:
- ./frontend:/usr/src/app/frontend
networks:
- localdev
ports:
- "4200:4200"
backend:
build:
context: .
dockerfile: ./backend/dev.Dockerfile
image: upgrade-backend:latest
user: "node"
env_file:
- ./backend/packages/Upgrade/.env.docker.local
environment:
- NODE_ENV=development
volumes:
- ./backend:/usr/src/app/backend
networks:
- localdev
ports:
- "3030:3030"
depends_on:
- "postgres"
postgres:
image: postgres:alpine
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
networks:
- localdev
ports:
- "5432:5432"
volumes:
- upgradedbdata:/var/lib/postgresql/data
volumes:
upgradedbdata:
networks:
localdev:
driver: "bridge"