-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 1012 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (42 loc) · 1012 Bytes
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
version: "3"
services:
mysql:
image: ghcr.io/meredevelop/mysql:8.0
environment:
MYSQL_DATABASE: database
MYSQL_ROOT_PASSWORD: 1114
MYSQL_ROOT_HOST: '%'
TZ: 'Asia/Seoul'
ports:
- 3306:3306
volumes:
- ./mysql-init/Dump_mere_1125_all.sql:/docker-entrypoint-initdb.d/Dump_mere_1125_all.sql
networks:
- corn_net
restart: always
redis:
image: ghcr.io/meredevelop/redis:6.2.5
command: redis-server
restart: always
networks:
- corn_net
ports:
- 6379:6379
server:
image: ghcr.io/meredevelop/server:latest
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql:3306/database?useSSL=false&allowPublicKeyRetrieval=true
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: 1114
SPRING_REDIS_HOST: redis
SPRING_REDIS_PORT: 6379
ports:
- 9091:9091
depends_on:
- mysql
- redis
networks:
- corn_net
networks:
corn_net:
driver: bridge