-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yml
46 lines (45 loc) · 1.24 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
version: '3.7'
services:
db:
image: mariadb
restart: always
volumes:
- ${VOLUME_PATH}/db/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_DATABASE
web:
image: vigilobs/vigilo-backend:0.0.19
working_dir: /var/www/html
ports:
- "${BIND}:80"
links:
- db
volumes:
- ./app:/var/www/html
- ./config/config.php.docker:/var/www/html/config/config.php
- ${VOLUME_PATH}/files/caches:/var/www/html/caches
- ${VOLUME_PATH}/files/maps:/var/www/html/maps
- ${VOLUME_PATH}/files/images:/var/www/html/images
- ${VOLUME_PATH}/logs/apache2/var_log_apache2:/var/log/apache2
environment:
- MYSQL_HOST
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_DATABASE
- AUTOUPDATE
backup:
build: docker_backup/
volumes:
- ${VOLUME_PATH}/backup:/backup
- ${VOLUME_PATH}/files/caches:/tosave/caches:ro
- ${VOLUME_PATH}/files/maps:/tosave/maps:ro
- ${VOLUME_PATH}/files/images:/tosave/images:ro
- ${VOLUME_PATH}/logs/apache2/var_log_apache2:/tosave/logs:ro
environment:
- MYSQL_HOST
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_DATABASE