-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
57 lines (54 loc) · 1.35 KB
/
docker-compose.yaml
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
---
version: "3.7"
volumes:
database:
driver: local
services:
webserver:
image: "nginx:1.11"
depends_on:
- php
env_file:
- "./.env"
volumes:
- "./Build/docker/nginx.conf:/etc/nginx/nginx.conf"
- "./Build/ssl/localhost.crt:/etc/nginx/ssl/localhost.crt"
- "./Build/ssl/localhost.key:/etc/nginx/ssl/localhost.key"
- "./:/var/www"
ports:
- 8080:80
- 8090:443
php:
build:
context: ./Build/php
args:
CONTEXT: "development"
volumes:
- "$SSH_AUTH_SOCK:/ssh-agent"
- "~/.composer:/opt/local/composer"
- "./Build/docker/php-fpm-pool.conf:/etc/php/7.3/fpm/template-www.conf:rw"
- "./:/var/www"
entrypoint: "/opt/local/entrypoints/entrypoint-fpm.sh"
environment:
COMPOSER_CACHE_DIR: "/opt/local/composer/cache"
LOCAL_USER_ID: "${LOCAL_USER_ID}"
LOCAL_GROUP_ID: "${LOCAL_GROUP_ID}"
MYSQL_DATABASE: "app"
MYSQL_USER: "app"
MYSQL_PASSWORD: "password"
working_dir: "/var/www"
expose:
- 9000
links:
- database
database:
image: "mariadb:10.3"
volumes:
- "database:/var/lib/mysql"
- "./Build/docker/mariadb.cnf:/etc/mysql/conf.d/mariadb.cnf"
- "./Build/database/:/dumps/"
working_dir: "/dumps"
env_file:
- "./.env"
ports:
- "${MYSQL_PORT}:3306"