-
Notifications
You must be signed in to change notification settings - Fork 8
/
local.yml
50 lines (49 loc) · 1.07 KB
/
local.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
version: '3.7'
services:
nginx:
env_file: .env
build:
context: .
dockerfile: ./compose/local/nginx.Dockerfile
restart: always
ports:
- "${EX_PORT_NGINX:-8030}:80"
volumes:
- ./nginx/site.conf:/etc/nginx/conf.d/default.conf
core:
env_file: .env
build:
context: .
dockerfile: ./compose/local/core.Dockerfile
args:
MYSQL_SERVER: ${MYSQL_SERVER:-}
POSTGRES_SERVER: ${POSTGRES_SERVER:-}
restart: always
depends_on:
- db
volumes:
- ./src:/home/app/web/
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "10"
db:
env_file: .env
build:
context: .
dockerfile: ./compose/local/mysql.Dockerfile
args:
MYSQL_USER: ${MYSQL_USER:-}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-}
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ${MYSQL_DB:-}
restart: always
ports:
- "3306:3306"
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "10"