forked from aalphaa/wookteam
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·41 lines (38 loc) · 838 Bytes
/
docker-compose.yml
File metadata and controls
executable file
·41 lines (38 loc) · 838 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
version: '3'
services:
nginx:
image: nginx
ports:
- "${APP_PORT}:80"
- "${APP_PORT_SSL}:443"
volumes:
- ./docker/site.conf:/etc/nginx/conf.d/default.conf
- ./:/var/www
links:
- php
depends_on:
- php
restart: unless-stopped
php:
hostname: php
build:
context: .
dockerfile: docker/php.Dockerfile
volumes:
- ./:/var/www
environment:
TZ: "Asia/Shanghai"
links:
- mariadb
depends_on:
- mariadb
mariadb:
hostname: mariadb
image: mariadb
command: --default-authentication-plugin=mysql_native_password
environment:
- "MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}"
- "MYSQL_DATABASE=${DB_DATABASE}"
- "MYSQL_USER=${DB_USERNAME}"
- "MYSQL_PASSWORD=${DB_PASSWORD}"
restart: always