-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (47 loc) · 1.14 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
version: '3'
services:
parser:
build:
context: .
dockerfile: Dockerfile.parser
image: dega.kr-parser
container_name: dega-parser
volumes:
- ./data:${DATA_PATH}
environment:
- BUNGIE_API_KEY=${BUNGIE_API_KEY}
- PARSER_SOCKET_TYPE=${PARSER_SOCKET_TYPE}
- PARSER_SOCKET_PATH=${PARSER_SOCKET_PATH}
- PARSER_SOCKET_HOST=${PARSER_SOCKET_HOST}
- PARSER_SOCKET_PORT=${PARSER_SOCKET_PORT}
- DATA_PATH=${DATA_PATH}
web:
build:
context: .
dockerfile: Dockerfile.web
image: dega.kr
container_name: dega-web
ports:
- 80:80
depends_on:
- parser
volumes:
- ./data:${DATA_PATH}
- static:/code/web/static
environment:
- PARSER_SOCKET_TYPE=${PARSER_SOCKET_TYPE}
- PARSER_SOCKET_PATH=${PARSER_SOCKET_PATH}
- PARSER_SOCKET_HOST=${PARSER_SOCKET_HOST}
- PARSER_SOCKET_PORT=${PARSER_SOCKET_PORT}
- DATA_PATH=${DATA_PATH}
static:
image: nginx
container_name: dega-static
ports:
- 8080:80
volumes:
- static:/usr/share/nginx/html/static
depends_on:
- web
volumes:
static: