-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
75 lines (70 loc) · 1.62 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
63
64
65
66
67
68
69
70
71
72
73
74
75
version: "3.9"
networks:
lan:
services:
racktables:
build:
context: src/
args:
BUILD_FROM: "alpine:3.13"
RACKTABLES_TAG: "RackTables-0.21.5"
image: "racktbles:0.21.5.3"
environment:
DB_HOST: "mariadb"
DB_NAME: "${DB_NAME}"
DB_USER: "${DB_USER}"
DB_PASS: "${DB_PASS}"
USR_AUTH_SRC: "ldap"
LDAP_USER: "${LDAP_USER}"
LDAP_PASS: "${LDAP_PASSWORD}"
LDAP_HOSTS: "${LDAP_SERVERS}"
LDAP_DOMAIN: "${LDAP_DOMAIN}"
LDAP_SDN: "${LDAP_SEARCH_DN}"
LDAP_GFILTER: "${LDAP_GROUP_FILTER}"
volumes:
- "/usr/share/zoneinfo/Asia/Aqtau:/etc/localtime:ro"
- "./php.ini:/etc/php7/php.ini"
networks:
lan:
aliases:
- "app"
- "racktables"
- "stock"
restart: unless-stopped
depends_on:
- db
db:
image: "mariadb:10.5"
environment:
MYSQL_DATABASE: "${DB_NAME}"
MYSQL_USER: "${DB_USER}"
MYSQL_PASSWORD: "${DB_PASS}"
MYSQL_ROOT_PASSWORD: "${DB_ROOT}"
volumes:
- "/usr/share/zoneinfo/Asia/Aqtau:/etc/localtime:ro"
- "./mariadb:/var/lib/mysql"
networks:
lan:
aliases:
- "mariadb"
- "database"
- "db"
restart: unless-stopped
ngix:
image: nginx:stable-alpine
volumes_from:
- racktables
volumes:
- "/usr/share/zoneinfo/Asia/Aqtau:/etc/localtime:ro"
- "./nginx.conf:/etc/nginx/nginx.conf"
ports:
- 80:80
networks:
lan:
aliases:
- "nginx"
- "www"
restart: unless-stopped
depends_on:
- racktables
- db