-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·39 lines (39 loc) · 1.05 KB
/
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
version: '3'
services:
mysql:
image: mariadb
command: ["--default-authentication-plugin=mysql_native_password"]
restart: on-failure
volumes:
- $PWD/data:/var/lib/mysql
ports:
- "3308:3306"
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: three_in_line
container_name: three_in_line_mysql
nginx:
image: nginx:alpine
restart: on-failure
environment:
APP_ENV: dev
depends_on:
- php
volumes:
- '.:/var/www/html'
- './docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro'
ports:
- "8080:80"
- "443:443"
container_name: three_in_line_nginx
php:
build:
context: .
dockerfile: docker/php/Dockerfile
restart: on-failure
volumes:
- '.:/var/www/html'
env_file:
- .env
user: www-data:www-data
container_name: three_in_line_php