-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathdocker-compose.yml
53 lines (51 loc) · 1.25 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
version: '3'
services:
db:
build:
context: ./postgres
args:
- POSTGRES_DB=${STORAGE_DATABASE}
- POSTGRES_USER=${STORAGE_DBUSER}
- POSTGRES_PASSWORD=${STORAGE_DBPASSWORD}
ports:
- "127.0.0.1:5432:5432"
environment:
- POSTGRES_DB=${STORAGE_DATABASE}
- POSTGRES_USER=${STORAGE_DBUSER}
- POSTGRES_PASSWORD=${STORAGE_DBPASSWORD}
networks:
- pupilgo
redis:
image: "redis:alpine"
restart: unless-stopped
networks:
- pupilgo
backend:
build: .
ports:
- "8000:3000"
restart: unless-stopped
depends_on:
- db
- redis
volumes:
- ./:/Go-LMS
environment:
REDIS_URL: redis:6379
networks:
- pupilgo
frontend:
build: ./user-interface
command: npm run start
ports:
- "3000:3000"
depends_on:
- backend
volumes:
- /user-interface/node_modules
- ./user-interface:/user-interface
networks:
- pupilgo
stdin_open: true
networks:
pupilgo: