-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·47 lines (42 loc) · 1.14 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
version: "3"
services:
php:
build: ./Docker/php-fpm
image: ${PROJECT_IDENTIFIER}/php-fpm:7.1-fpm-alpine
environment:
FLOW_CONTEXT: "${FLOW_CONTEXT}"
depends_on:
- "redis"
- "mariadb"
volumes:
- "./Data:/data"
nginx:
build:
context: "./Docker/nginx"
args:
PROJECT_TYPE: "${PROJECT_TYPE}"
image: ${PROJECT_IDENTIFIER}/nginx:1.11-alpine
ports:
- "${NGINX_PORT}:${NGINX_PORT}"
environment:
FLOW_CONTEXT: "${FLOW_CONTEXT}"
NGINX_PORT: "${NGINX_PORT}"
NGINX_DOCUMENT_ROOT: "${NGINX_DOCUMENT_ROOT}"
depends_on:
- "php"
volumes:
- "./Data:/data"
redis:
build: ./Docker/redis
image: ${PROJECT_IDENTIFIER}/redis:3.2-alpine
mariadb:
build: ./Docker/mariadb
image: ${PROJECT_IDENTIFIER}/mariadb:10.1-debian-jessie
command: "--character-set-server=utf8 --collation-server=utf8_unicode_ci"
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_DATABASE: "${MYSQL_DATABASE}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
volumes:
- "./MariaDB:/var/lib/mysql"