forked from annibuliful/mu-senior-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (56 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
54
55
56
version: "3"
services:
web:
build: ./frontend
container_name: "senior-frontend"
volumes:
- ./frontend:/usr/src/service
ports:
- "8080:8080"
command: npm run serve
api:
build: ./backend
container_name: "senior-api"
command: npm run start:debug
volumes:
- ./backend:/usr/src/service
- ./backend/images:/usr/src/service/images
- /usr/src/service/node_modules
working_dir: /usr/src/service
# ports:
# - "3030:3030"
depends_on:
- db
- redis
environment:
WAIT_HOSTS: db:5432
nginx:
container_name: "senior-nginx"
restart: always
image: nginx
ports:
- "80:80"
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./nginx/log:/etc/nginx/log
- ./nginx/web-frontend:/web-frontend
depends_on:
- web
- api
db:
build: ./postgresql
container_name: "senior-db"
volumes:
- ./data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=1234
- POSTGRES_USER=senior
- POSTGRES_DB=senior
redis:
image: "redis:4-alpine"
container_name: "senior-redis"
command: redis-server --requirepass 1234
ports:
- "6379:6379"