-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
45 lines (42 loc) · 968 Bytes
/
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
version: '3'
networks:
network:
services:
tripcometrue-db:
container_name: tripcometrue-db
image: jo0oy/tripcometrue-mysql
ports:
- "3307:3306"
environment:
- MYSQL_DATABASE=tripcometrue
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- TZ=Asia/Seoul
volumes:
- ./database/data:/var/lib/mysql
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
restart: always
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 30s
retries: 3
networks:
- network
tripcometrue-redis:
container_name: tripcometrue-redis
image: redis:6
hostname: redis
command: redis-server --port 6379
ports:
- "6379:6379"
volumes:
- ./redis/data:/data
environment:
- TZ=Asia/Seoul
labels:
- "name=redis"
- "mode=standalone"
restart: always
networks:
- network