forked from inensus/MPManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
112 lines (99 loc) · 2.34 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
version: '3.1'
services:
'laravel':
container_name: laravel
build:
context: Docker/
dockerfile: DockerfileLaravelDev
image: laravel/php:73
environment:
VIRTUAL_HOST: mpmanager.local
depends_on:
- maria
links:
- maria:db
- redis:redis
volumes:
- ./Website/config/php/php.ini:/usr/local/etc/php/php.ini
- ./Website/htdocs:/var/www/html
'cron':
container_name: cron_job
build:
context: Docker/
dockerfile: DockerfileCron
image: laravel/cron
depends_on:
- maria
links:
- maria:db
- redis:redis
volumes:
- ./Website/config/php/php.ini:/usr/local/etc/php/php.ini
- ./Website/htdocs:/var/www/html
queue:
image: ipunktbs/laravel-queue-worker
container_name: queue
restart: unless-stopped
volumes:
- ./Website/htdocs/mpmanager:/var/www/app
depends_on:
- maria
links:
- maria:db
- redis:redis
environment:
- LARAVEL_HORIZON=true
'composer':
container_name: mpmanager_composer
build:
context: Docker/
dockerfile: DockerfileComposer
restart: 'no'
command: install
volumes:
- ./Website/htdocs/mpmanager:/app
'node':
container_name: mpmanager_node
build:
context: Docker/
dockerfile: DockerfileNpm
volumes:
- ./Website/htdocs/mpmanager:/home/node/app
command: /bin/sh -c "/tmp/start.sh"
'redis':
image: redis:5
volumes:
- ./redis/:/data
'phpmyadmin':
image: phpmyadmin/phpmyadmin:latest
environment:
VIRTUAL_HOST: db.mpmanager.local
depends_on:
- maria
links:
- maria:db
'maria':
container_name: maria
image: mariadb:10.3
environment:
MYSQL_ROOT_PASSWORD: laravel
MYSQL_DATABASE: laravel
MYSQL_USER: laravel
MYSQL_PASSWORD: laravel
volumes:
- ./DB/mysql:/var/lib/mysql
nginxproxy:
container_name: nginx-proxy
image: jwilder/nginx-proxy:latest
ports:
- "80:80"
- "443:443"
- "6379:6379"
environment:
VIRTUAL_PROTO: https
volumes:
- ./NginxProxy/proxy.conf:/etc/nginx/proxy.conf
- ./NginxProxy/conf.d:/etc/nginx/conf.d
- ./NginxProxy/certs:/etc/nginx/certs
- ./NginxProxy/vhost.d:/etc/nginx/vhost.d
- /var/run/docker.sock:/tmp/docker.sock:ro