-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (62 loc) · 1.48 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
version: "3"
services:
web:
image: nginx:alpine
volumes:
- "./docker/etc/nginx/default.conf:/etc/nginx/conf.d/default.conf"
- "./docker/etc/ssl:/etc/ssl"
- "./:/var/www/html"
- "./docker/etc/nginx/default.template.conf:/etc/nginx/conf.d/default.template"
ports:
- "8000:80"
- "443:443"
environment:
- NGINX_HOST=localhost
command: /bin/sh -c "envsubst '$$NGINX_HOST' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
restart: always
depends_on:
- composer
- mysqldb
php:
image: nanoninja/php-fpm:latest
restart: always
environment:
- DEBUG_MODE=true
volumes:
- "./docker/etc/php/php.ini:/usr/local/etc/php/conf.d/php.ini"
- "./:/var/www/html"
mysqldb:
image: mariadb:10.5.8
container_name: mariadb
restart: always
environment:
- MYSQL_DATABASE=test
- MYSQL_ROOT_PASSWORD=test
- MYSQL_USER=test
- MYSQL_PASSWORD=test
ports:
- "8989:3306"
volumes:
- "./docker/data/db/mysql:/var/lib/mysql"
adminer:
image: adminer
restart: always
ports:
- 8080:8080
composer:
image: composer:2.0.8
command: install
working_dir: /var/www/html
volumes:
- "./:/var/www/html"
depends_on:
- php
app:
build:
context: ./
dockerfile: ./Dockerfile
image: app/app
volumes:
- "./:/var/www/html"
ports:
- "3000:3000"