-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (50 loc) · 1.04 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:
gati-web:
image: nginx
ports:
- 80:80
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
depends_on:
- gati-application
environment:
- TZ="Asia/Seoul"
gati-database:
image: mysql:8.0
environment:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: root
MYSQL_ROOT_HOST: '%'
TZ: "Asia/Seoul"
expose:
- 3306
volumes:
- gati-volume:/var/lib/mysql
command:
- "mysqld"
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
gati-redis:
image: redis:7.0
command: redis-server --port ${REDIS_PORT}
ports:
- ${REDIS_PORT}:6379
environment:
- TZ="Asia/Seoul"
gati-application:
image: ${DOCKER_USERNAME}/${DOCKER_REPO}
expose:
- 8080
ports:
- "9090:9090"
env_file:
- .env
depends_on:
- gati-database
environment:
- TZ="Asia/Seoul"
volumes:
gati-volume: {}