forked from nochlezhka/mks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.dist
52 lines (52 loc) · 1.06 KB
/
docker-compose.yml.dist
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'
services:
nginx:
container_name: mks-nginx
build:
context: ./docker/nginx
dockerfile: Dockerfile
args:
UID: $UID
GUID: $GUID
links:
- php
ports:
- $PORT:80
- $HTTPS_PORT:443
volumes_from:
- php
volumes:
- "./shared/logs/nginx:/var/log/nginx"
networks:
default:
aliases:
- $NGINX_ALIAS
restart: always
php:
container_name: mks-app
build:
context: ./docker/php
dockerfile: Dockerfile
args:
UID: $UID
GUID: $GUID
links:
- db
volumes:
- "./shared/homeless:/var/www/symfony"
restart: always
db:
container_name: mks-db
image: mariadb:10.3
expose:
- "3306"
ports:
- 127.0.0.1:$MYSQL_PORT:3306
volumes:
- "./shared/mysql/data/db:/var/lib/mysql"
environment:
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
MYSQL_DATABASE: $MYSQL_DATABASE
MYSQL_USER: $MYSQL_USER
MYSQL_PASSWORD: $MYSQL_PASSWORD
restart: always