-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
43 lines (41 loc) · 1.18 KB
/
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
version: '3'
services:
mysql:
image: mysql:5.7.26
restart: always
environment:
MYSQL_ONETIME_PASSWORD: "true"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_DATABASE: "${MYSQL_DATABASE}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
volumes:
- shinobi_mysql:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-u$MYSQL_USER", "-p$MYSQL_PASSWORD"]
timeout: 20s
retries: 10
command: --innodb-buffer-pool-size=1G --innodb-log-buffer-size=128M
shinobi:
depends_on:
- mysql
build: .
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
#- /etc/timezone:/etc/timezone:ro
- ./config:/config
- ./videos:/opt/shinobi/videos
- /dev/shm/shinobiDockerTemp:/dev/shm/streams
ports:
- "${SHINOBI_PORT:-8080}:8080"
environment:
MYSQL_HOST: "mysql"
MYSQL_DATABASE: "${MYSQL_DATABASE}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
ADMIN_USER: "${ADMIN_USER}"
ADMIN_PASSWORD: "${ADMIN_PASSWORD}"
utcOffset: "${utcOffset}"
volumes:
shinobi_mysql: {}