forked from inensus/MPManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-prod-non-domain.yml
99 lines (91 loc) · 2.14 KB
/
docker-compose-prod-non-domain.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
version: '3.1'
services:
'laravel':
build:
context: Docker/
dockerfile: DockerfileLaravelProd
image: laravel/php:73
container_name: laravel
restart: unless-stopped
depends_on:
- maria
- composer
- node
- cron
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
- redis
links:
- redis:redis
- maria:db
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
restart: unless-stopped
volumes:
- ./redis/:/data
'maria':
container_name: maria
image: mariadb:10.3
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: laravel
MYSQL_DATABASE: laravel
MYSQL_USER: laravel
MYSQL_PASSWORD: laravel
volumes:
- ./DB/mysql:/var/lib/mysql
nginx:
container_name: nginx
image: nginx:1.15-alpine
restart: unless-stopped
volumes:
- ./Website/htdocs:/var/www/html
- ./NginxProxy/conf.p:/etc/nginx/conf.d
ports:
- "80:80"
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"