-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
62 lines (52 loc) · 1.55 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: '3.7'
services:
### MariaDB Container #######################################
mariadb:
build:
context: ./mariadb
args:
MARIADB_IMAGE: ${MARIADB_IMAGE}
volumes:
- mariadb:/var/lib/mysql
- ${MARIADB_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
ports:
- "${MARIADB_PORT}:3306"
environment:
- MYSQL_DATABASE=${MARIADB_DATABASE}
- MYSQL_USER=${MARIADB_USER}
- MYSQL_PASSWORD=${MARIADB_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
restart: unless-stopped
### phpMyAdmin Container ####################################
phpmyadmin:
build:
context: ./phpmyadmin
args:
PMA_IMAGE: ${PMA_IMAGE}
environment:
- PMA_ARBITRARY=1
ports:
- "${PMA_PORT}:80"
depends_on:
- "mariadb"
restart: unless-stopped
### Shinobi Container #######################################
shinobi:
image: ${SHINOBI_IMAGE}
depends_on:
- "mariadb"
ports:
- "8080:8080"
environment:
- DATABASE_HOST=mariadb
- DATABASE_USER=${SHINOBI_DB_USER}
- DATABASE_PASSWORD=${SHINOBI_DB_PASSWORD}
- DATABASE_PORT=${SHINOBI_DB_PORT}
volumes:
- ${DATA_SAVE_PATH}/shinobi/config:/config
- ${DATA_SAVE_PATH}/shinobi/videos:/opt/shinobi/videos
- ${DATA_SAVE_PATH}/shinobi/datadir:/var/lib/mysql
restart: unless-stopped
### Volumes Setup #############################################
volumes:
mariadb: