forked from greymich/Laraquiz-QuickAdminPanel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (64 loc) · 1.7 KB
/
Copy pathdocker-compose.yml
File metadata and controls
68 lines (64 loc) · 1.7 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
version: '3'
services:
web:
logging:
options:
max-size: 10m
image: nginx:alpine
volumes:
- "./.docker/etc/nginx/default.conf:/etc/nginx/conf.d/default.conf"
- "./.docker/etc/ssl:/etc/ssl"
- "./.docker/etc/nginx/default.template.conf:/etc/nginx/conf.d/default.template"
- "./:/var/www"
ports:
- "${HTTPS_PORT:-10443}:443"
environment:
- NGINX_HOST=${NGINX_HOST}
command: /bin/sh -c "envsubst '$$NGINX_HOST' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget --quiet --tries=1 --spider http://localhost/ || exit 1"]
interval: 1m
timeout: 10s
retries: 3
networks:
- laraquiz
depends_on:
- fpm
fpm:
logging:
options:
max-size: 10m
build: ./.docker
restart: unless-stopped
volumes:
- "./.docker/etc/php/php.ini:/usr/local/etc/php/conf.d/php.ini"
- "./.docker/etc/php/php-fpm.ini:/usr/local/etc/php-fpm.d/www.conf"
- "./:/var/www"
networks:
- laraquiz
redis:
image: redis
networks:
- laraquiz
db:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
networks:
- laraquiz
composer:
logging:
options:
max-size: 10m
restart: 'no'
image: composer:latest
command: install --no-dev
volumes:
- .:/app
networks:
laraquiz:
driver: "bridge"