-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (71 loc) · 1.75 KB
/
docker-compose.yml
File metadata and controls
76 lines (71 loc) · 1.75 KB
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
services:
front:
container_name: frontend
image: hamgeonwook/4zopalza_front:latest
ports:
- "80:80"
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
restart: always
back:
container_name: backend
image: hamgeonwook/4zopalza_back:latest
ports:
- "8080:8080"
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
restart: always
data:
container_name: data
image: hamgeonwook/4zopalza_data:latest
environment:
APP_KEY: ${APP_KEY}
APP_SECRET: ${APP_SECRET}
ACC: ${ACC}
ACC_NO: ${ACC_NO}
TOKEN: ${TOKEN}
TOKEN_EXPIRE_TIME: ${TOKEN_EXPIRE_TIME}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_NAME: ${DB_NAME}
DART_API_KEY: ${DART_API_KEY}
GPT_API_KEY: ${GPT_API_KEY}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REDIS_DB: ${REDIS_DB}
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
depends_on:
- redis
- mysql
restart: always
command: python update.py # 추가
redis:
container_name: redis
image: redis:latest
ports:
- "6379:6379"
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
restart: always
mysql:
container_name: mysql
image: mysql:latest
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
volumes:
- mysql-data:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
restart: always
volumes:
mysql-data: