-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
73 lines (69 loc) · 1.98 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
# lampstack based on CentOS 7 equipped with MariaDB image detached
#
version: '2.3'
services:
db:
image: mariadb:latest
container_name: mariadb
volumes:
- ./mysql:/var/lib/mysql:cached
- ./mysql-dump:/tmp2
- ./docker-config/mariadb/script:/docker-entrypoint-initdb.d
- ./docker-config/mariadb/config:/etc/mysql/conf.d
- ./mysql-cron:/usr/local/sbin
environment:
- MARIADB_ROOT_PASSWORD=db_root_password
- MARIADB_DB=projeqtr
- MARIADB_USER=projeqtor
- MARIA_PASSWORD=db_projeqtor_password
networks:
- projeqtor
restart: always
www:
build:
context: ./docker-config/centos
container_name: centos7
volumes:
- ./www:/var/www/html
- ./projeqtor-config:/var/www/html/files/config
- ./projector-logs:/var/www/html/files/logs
- ./www-logs:/var/log/httpd
- ./www-cron:/usr/local/sbin
networks:
- projeqtor
ports:
- "8080:8080"
restart: always
depends_on:
- db
backup:
build:
context: ./docker-config/centos-rclone
container_name: centos7-rclone
volumes:
- ./rclone-config:/home/root/.rclone
- ./rclone-logs:/var/log/rclone
- ./mysql-dump:/mnt/mysql-dump
- ./projeqtor-config:/mnt/projeqtor-config
- ./projeqtor-logs:/mnt/projeqtor-logs
- ./www:/mnt/www
- ./www-logs:/mnt/www-logs
- ./rclone-cron:/usr/local/sbin
restart: always
networks:
- projeqtor
depends_on:
- db
- www
networks:
projeqtor:
# use the bridge driver, but disable IPv6
driver: bridge
internal: false
driver_opts:
com.docker.network.enable_ipv6: "false"
ipam:
driver: default
config:
- subnet: 175.22.0.0/24
gateway: 175.22.0.1