-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (46 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
48
49
50
51
52
version: "2.1"
services:
php:
build: ./Docker/php-fpm
image: "secret/php:7.1-fpm-alpine"
links:
- "mariadb"
- "mailcatcher"
environment:
FLOW_CONTEXT: "${FLOW_CONTEXT}"
volumes:
- "./Data:/data/"
mem_limit: 256m
nginx:
build: ./Docker/nginx
image: "secret/nginx:1.11-alpine"
command: /bin/sh -c "/run_nginx.sh"
ports:
- "${NGINX_PORT}:${NGINX_PORT}"
links:
- "php"
volumes:
- "./Data:/data/"
environment:
FLOW_CONTEXT: "${FLOW_CONTEXT}"
NGINX_PORT: "${NGINX_PORT}"
mem_limit: 128m
mariadb:
build: ./Docker/mariadb
image: "secret/mariadb:10.1-debian-jessie"
command: "--character-set-server=utf8 --collation-server=utf8_unicode_ci"
ports:
- 3307:3306
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_DATABASE: "${MYSQL_DATABASE}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
volumes:
- "./Persistence/MySQL:/var/lib/mysql"
mem_limit: 128m
mailcatcher:
build: ./Docker/mailcatcher
image: "secret/mailcatcher"
ports:
- 1080:1080