-
-
Notifications
You must be signed in to change notification settings - Fork 230
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
164 lines (155 loc) · 3.45 KB
/
docker-compose.yml
File metadata and controls
164 lines (155 loc) · 3.45 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
services:
php:
build:
context: ./.docker/php
image: nexusphp_php
container_name: nexusphp-php
environment:
SERVICE_NAME: php
volumes:
- .:/var/www/html
- ${NP_BACKUP_EXPORT_PATH:-/tmp/nexusphp_backup}:${NP_BACKUP_EXPORT_PATH:-/tmp/nexusphp_backup}
depends_on:
- mysql
- redis
logging:
driver: "json-file"
options:
max-size: "1024m"
max-file: "3"
networks:
- appnet
queue:
image: nexusphp_php
container_name: nexusphp-queue
environment:
SERVICE_NAME: queue
volumes:
- .:/var/www/html
depends_on:
- php
- redis
- mysql
logging:
driver: "json-file"
options:
max-size: "1024m"
max-file: "3"
networks:
- appnet
restart: always
scheduler:
image: nexusphp_php
container_name: nexusphp-scheduler
environment:
SERVICE_NAME: scheduler
volumes:
- .:/var/www/html
- ${NP_BACKUP_EXPORT_PATH:-/tmp/nexusphp_backup}:${NP_BACKUP_EXPORT_PATH:-/tmp/nexusphp_backup}
depends_on:
- php
- redis
- mysql
logging:
driver: "json-file"
options:
max-size: "1024m"
max-file: "3"
networks:
- appnet
restart: always
cleanup:
image: nexusphp_php
container_name: nexusphp-cleanup
environment:
SERVICE_NAME: cleanup
volumes:
- .:/var/www/html
depends_on:
- php
- redis
- mysql
logging:
driver: "json-file"
options:
max-size: "1024m"
max-file: "3"
networks:
- appnet
restart: always
openresty:
build:
context: ./.docker/openresty
container_name: nexusphp-openresty
environment:
NP_DOMAIN: ${NP_DOMAIN:-localhost}
NP_PORT: ${NP_PORT:-80}
volumes:
- ./.docker/openresty/sites:/etc/nginx/conf.d/sites
- ./.docker/openresty/certs:/certs
- ./.docker/openresty/entrypoint.sh:/usr/local/bin/entrypoint.sh
- ./.docker/openresty/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf
- ./.docker/openresty/lua:/usr/local/openresty/lua
- .:/var/www/html
depends_on:
- php
- phpmyadmin
command: ["/bin/sh", "/usr/local/bin/entrypoint.sh"]
ports:
- "${NP_PORT:-80}:${NP_PORT:-80}"
logging:
driver: "json-file"
options:
max-size: "1024m"
max-file: "3"
networks:
- appnet
redis:
image: redis:alpine
container_name: nexusphp-redis
command: redis-server
volumes:
- redis-data:/data
logging:
driver: "json-file"
options:
max-size: "1024m"
max-file: "3"
networks:
- appnet
mysql:
image: mysql:9
container_name: nexusphp-mysql
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:-root}
MYSQL_DATABASE: ${DB_DATABASE:-nexusphp}
MYSQL_USER: ${DB_USERNAME:-nexusphp}
MYSQL_PASSWORD: ${DB_PASSWORD:-nexusphp}
volumes:
- mysql-data:/var/lib/mysql
logging:
driver: "json-file"
options:
max-size: "1024m"
max-file: "3"
networks:
- appnet
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: nexusphp-phpmyadmin
environment:
PMA_HOST: mysql
depends_on:
- mysql
logging:
driver: "json-file"
options:
max-size: "1024m"
max-file: "3"
networks:
- appnet
volumes:
mysql-data:
redis-data:
networks:
appnet: