This repository has been archived by the owner on Dec 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dist.yml
94 lines (87 loc) · 2.05 KB
/
docker-compose.dist.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
94
version: "2.4"
services:
core:
image: laravelvpnadmin/api-core
restart: unless-stopped
ports:
- 80:80
volumes:
- ./logs/api-core:/var/log/apache2
- ./sites/api-core/storage:/app/storage
- ./sites/api-core/bootstrap/cache:/app/bootstrap/cache
# - ../api-core:/app
logging:
driver: "json-file"
options:
max-size: "50m"
queue:
image: laravelvpnadmin/api-core
restart: unless-stopped
environment:
- CONTAINER_ROLE=queue
user: www-data
volumes:
- ./logs/api-core:/var/log/apache2
- ./sites/api-core/storage:/app/storage
- ./sites/api-core/bootstrap/cache:/app/bootstrap/cache
# - ../api-core:/app
logging:
driver: "json-file"
options:
max-size: "50m"
scheduler:
image: laravelvpnadmin/api-core
restart: unless-stopped
environment:
- CONTAINER_ROLE=scheduler
user: www-data
volumes:
- ./logs/api-core:/var/log/apache2
- ./sites/api-core/storage:/app/storage
- ./sites/api-core/bootstrap/cache:/app/bootstrap/cache
# - ../api-core:/app
logging:
driver: "json-file"
options:
max-size: "50m"
redis:
restart: unless-stopped
image: redis:5
ports:
- 127.0.0.1:6379:6379
volumes:
- ./databases/redis:/data
logging:
driver: "json-file"
options:
max-size: "50m"
mariadb:
restart: unless-stopped
image: mariadb:10
ports:
- 127.0.0.1:3306:3306
environment:
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: rootroot
MYSQL_DATABASE: vpnadmin
MYSQL_USER: vpnadmin_user
MYSQL_PASSWORD: vpnadmin_pass
volumes:
- ./databases/mariadb:/var/lib/mysql
logging:
driver: "json-file"
options:
max-size: "50m"
phpmyadmin:
restart: unless-stopped
image: phpmyadmin/phpmyadmin:latest
ports:
- 127.0.0.1:8080:80
environment:
PMA_HOST: mariadb
PMA_USER: root
PMA_PASSWORD: rootroot
logging:
driver: "json-file"
options:
max-size: "50m"