-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (53 loc) · 1.24 KB
/
docker-compose.yml
File metadata and controls
59 lines (53 loc) · 1.24 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
version: "3"
services:
spring:
container_name: spring
build:
context: backend/mrc
dockerfile: Dockerfile
restart: always
depends_on:
- mysql
- redis
ports:
- "8080:8080"
networks:
- db-connection
- redis-connection
mysql:
container_name: mysql
image: mysql:8.0
restart: always
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_ROOT_HOST=${MYSQL_ROOT_HOST}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- TZ=Asia/Seoul
volumes:
- ${MYSQL_DATA_PATH}:/var/lib/mysql
- ${MYSQL_CONFIG_PATH}:/etc/mysql/conf.d
# - ${MYSQL_INIT_PATH}:/docker-entrypoint-initdb.d
networks:
- db-connection
ports:
- ${MYSQL_PORT}
redis:
container_name: redis
image: redis
command:
- --requirepass ${REDIS_PASSWORD}
volumes:
- ${REDIS_DATA_PATH}:/data
- ${REDIS_CONFIG}:/usr/local/etc/redis/redis.conf
networks:
- redis-connection
networks:
db-connection:
driver: bridge
redis-connection:
driver: bridge