-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
57 lines (52 loc) · 1.14 KB
/
docker-compose.yaml
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
version: "3.0"
services:
mysql:
image: mariadb:10.4.20
container_name: mysql
restart: always
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: test
MYSQL_ROOT_PASSWORD: ssafy
MYSQL_USER: root
MYSQL_PASSWORD: ssafy
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/config:/etc/mysql/conf.d
privileged: true
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
networks:
- tempnet
front:
build: ./front-end
ports:
- "8081:8081"
volumes:
- /var/www/html:/app
back:
build: ./back-end/liargame
ports:
- "5000:5000"
environment:
SPRING_DATASOURCE_URL: "jdbc:mysql://mysql:3306/test?useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Seoul&zeroDateTimeBehavior=convertToNull&rewriteBatchedStatements=true"
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: ssafy
SPRING_REDIS_HOST: "redis"
server.address: 0.0.0.0
depends_on:
- redis
- mysql
networks:
- tempnet
redis:
image: redis:6.2.4-alpine
container_name: redis
volumes:
- ./redis/redis-data:/data
ports:
- "6379:6379"
networks:
- tempnet
networks:
tempnet: