-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose-dev.yml
77 lines (76 loc) · 1.91 KB
/
docker-compose-dev.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '2'
services:
nginx:
container_name: mks-nginx
build:
context: ./docker/local/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/local/php
dockerfile: Dockerfile
args:
UID: $UID
GUID: $GUID
links:
- db
environment:
APP_ENV: dev
LOGO_PATH: '/render/logo.png'
BIG_LOGO_PATH: '/render/logo_big.png'
DB_HOST: db
DB_NAME: $MYSQL_DATABASE
DB_PORT: $MYSQL_PORT
DB_USER: $MYSQL_USER
DB_PASSWORD: $MYSQL_PASSWORD
ORG_NAME_SHORT: $ORG_NAME_SHORT
ORG_NAME: $ORG_NAME
ORG_DESCRIPTION: $ORG_DESCRIPTION
ORG_DESCRIPTION_SHORT: $ORG_DESCRIPTION_SHORT
ORG_CITY: $ORG_CITY
ORG_CONTACTS_FULL: $ORG_CONTACTS_FULL
DISPENSARY_NAME: $DISPENSARY_NAME
DISPENSARY_ADDRESS: $DISPENSARY_ADDRESS
DISPENSARY_PHONE: $DISPENSARY_PHONE
EMPLOYMENT_NAME: $EMPLOYMENT_NAME
EMPLOYMENT_ADDRESS: $EMPLOYMENT_ADDRESS
EMPLOYMENT_INSPECTION: $EMPLOYMENT_INSPECTION
SANITATION_NAME: $SANITATION_NAME
SANITATION_ADDRESS: $SANITATION_ADDRESS
SANITATION_TIME: $SANITATION_TIME
volumes:
- "./shared/homeless:/var/www/symfony"
restart: always
db:
container_name: mks-db
image: mysql:8.0.29
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