-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (37 loc) · 943 Bytes
/
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
services:
account:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
container_name: account
env_file:
- ./config/local.env
volumes:
- ./src:/var/www/html/src
depends_on:
- account-adm
account-adm:
image: mysql:8.1
restart: unless-stopped
hostname: account-adm
container_name: account-adm
ports:
- "3307:3306"
environment:
TZ: "America/Sao_Paulo"
MYSQL_ROOT_PASSWORD: "root"
command: --default-authentication-plugin=caching_sha2_password --host-cache-size=0 --pid-file=/var/lib/mysql/mysqld.pid
volumes:
- ./config/database/mysql:/scripts/config
nginx:
image: nginx:1-alpine
restart: unless-stopped
container_name: nginx
ports:
- "80:80"
volumes:
- ./public:/var/www/html/public
- ./config/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- account