-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
69 lines (65 loc) · 1.53 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
58
59
60
61
62
63
64
65
66
67
68
69
version: '3.9'
services:
nx-jikkyo:
image: nx-jikkyo
container_name: nx-jikkyo
build:
context: .
restart: unless-stopped
ports:
- "${SERVER_PORT}:${SERVER_PORT}"
volumes:
- type: bind
source: './.env'
target: '/code/.env'
- type: bind
source: './client/'
target: '/code/client/'
- type: bind
source: './server/data/'
target: '/code/server/data/'
- type: bind
source: './server/logs/'
target: '/code/server/logs/'
depends_on:
- nx-jikkyo-mysql
- nx-jikkyo-redis
networks:
- proxy-network
cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
nx-jikkyo-mysql:
image: mysql:8.0
container_name: nx-jikkyo-mysql
restart: unless-stopped
environment:
TZ: Asia/Tokyo
MYSQL_ROOT_HOST: '172.%'
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
volumes:
- type: bind
source: './server/data/database/'
target: '/var/lib/mysql/'
- type: bind
source: './my.cnf'
target: '/etc/mysql/conf.d/my.cnf'
networks:
- proxy-network
nx-jikkyo-redis:
image: redis:6.2
container_name: nx-jikkyo-redis
restart: unless-stopped
volumes:
- type: bind
source: './server/data/redis/'
target: '/data'
networks:
- proxy-network
networks:
proxy-network:
external: true