forked from Myddleware/myddleware
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
executable file
·93 lines (86 loc) · 2.32 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: '3'
services:
myddleware:
image: opencrmitalia/myddleware:v3
ports:
- ${myddleware_port:-30080}:80
environment:
- MYSQL_HOST=mysql
- MYSQL_DATABASE=myddleware
- MYSQL_ROOT_PASSWORD=${mysql_root_password:-secret}
- MONITORING_KEY=${monitoring_key:-}
- MONITORING_URL=${monitoring_url:-}
env_file:
- .env.local
volumes:
- ./:/var/www/html:cached
- ./docker/tmp/composer:/root/.composer:cached
links:
- mysql
restart: always
mysql:
image: mysql:5.7.28
environment:
- MYSQL_DATABASE=myddleware
- MYSQL_ROOT_PASSWORD=${mysql_root_password:-secret}
- MYSQL_USER=myddleware
- MYSQL_PASSWORD=${mysql_password:-secret}
- max_allowed_packet=524288000
- wait_timeout=100
volumes:
- ./docker/var/mysql:/var/lib/mysql:rw
restart: always
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- ${phpmyadmin_port:-30088}:80
environment:
- PMA_HOST=mysql
links:
- mysql
restart: always
backup:
image: databack/mysql-backup
environment:
- DB_SERVER=mysql
- DB_USER=root
- DB_PASS=secret
- DB_NAMES=myddleware
- DB_DUMP_TARGET=${backup_target:-}
- DB_DUMP_FREQ=1440
- DB_DUMP_BEGIN=2300
- AWS_DEFAULT_REGION=eu-west-1
- AWS_ACCESS_KEY_ID=${aws_access_key_id:-}
- AWS_SECRET_ACCESS_KEY=${aws_secret_access_key:-}
volumes:
- ./docker/backup/mysql:/tmp
restart: always
filebrowser:
image: filebrowser/filebrowser
ports:
- ${filebrowser_port:-30090}:30090
volumes:
- ./src/Custom:/srv/Custom
- ./src/Templates:/srv/Templates
- ./src/Solutions:/srv/Solutions
- ./var/log:/srv/Log
- ./var/cache:/srv/Cache
- ./docker/etc/.filebrowser.json:/.filebrowser.json
- ./docker/var/filebrowser.db:/database.db
- ./docker/var/downloads:/srv/Downloads
restart: always
vpn:
image: javanile/openvpn:2.4
tty: true
stdin_open: true
environment:
- EXTERNAL_PORT=${openvpn_port:-1194}
- EXTERNAL_ADDRESS=${external_address:-}
- CLIENT_FORWARD=${vpn_client_forward:-}
ports:
- ${openvpn_port:-1194}:1194/udp
cap_add:
- NET_ADMIN
volumes:
- ./docker/etc/openvpn:/etc/openvpn
restart: always