-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml.dist
More file actions
46 lines (46 loc) · 948 Bytes
/
docker-compose.yml.dist
File metadata and controls
46 lines (46 loc) · 948 Bytes
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
version: '2'
services:
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
php:
build:
context: ./docker/php
dockerfile: Dockerfile
args:
UID: $UID
GUID: $GUID
links:
- db
volumes:
- "./shared/homeless:/var/www/symfony"
db:
image: codepilotscom/mks-mariadb:10.3
expose:
- "3306"
ports:
- $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