-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
100 lines (79 loc) · 1.63 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: '3.3'
services:
server:
restart: always
build:
context: ./GameDJ
dockerfile: Dockerfile
container_name: server
volumes:
- /app/node_modules
- ./GameDJ:/app
ports:
- 5000:5000
networks:
- DropTheBit
# depends_on:
# - redis
# links:
# - redis
# environment: # 환경변수 설정
# - REDIS_PORT=6379
# - REDIS_HOST=redis
# environment:
# NODE_ENV: ${NODE_ENV}
# redis:
# build:
# context: ./redis
# restart: always
# ports:
# - 6379:6379
# expose:
# - 6379
# networks:
# - DropTheBit
# environment:
nginx:
build:
context: ./nginx
restart: always
ports:
- 80:80
networks:
- DropTheBit
# python:
# build:
# context: ./pythonData
# restart: always
# networks:
# - DropTheBit
# links:
# - redis
networks:
DropTheBit:
driver: bridge
# services:
# web:
# image: nginx:latest
# container_name: nginx
# restart: "on-failure"
# ports:
# - 80:80
# volumes:
# - ./nginx/nginx.conf:/etc/nginx/nginx.conf
# 아래 부분은 Client 설정으로, Dockerfile을 통해 설정 후 별도로 nginx통해서 실행할 수 있을 듯
# client:
# build:
# context: ./PartyPeople
# container_name: PartyPeople
# restart: "on-failure"
# expose:
# - 3000
# volumes:
# - './client:/app'
# - '/app/node_modules'
# environment:
# - NODE_ENV=development
# - CHOKIDAR_USEPOLLING=true
# stdin_open: true
# tty: true