-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
docker-compose.yml
42 lines (42 loc) · 1.06 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
40
41
42
version: '3'
services:
db:
build:
context: .
dockerfile: docker/mysql/Dockerfile
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
command: --default-authentication-plugin=mysql_native_password
restart: unless-stopped
volumes:
- ./db_data:/usr/data
ports:
- 3306:3306
web:
build:
context: .
dockerfile: docker/apache/Dockerfile
args:
uid: ${UID}
environment:
- APACHE_RUN_USER=#${UID}
- APACHE_RUN_GROUP=#${UID}
restart: unless-stopped
volumes:
- ./src:/var/www/html
- ./apache_log:/var/log/apache2
ports:
- 80:80
depends_on:
- db
links:
- db
adminer:
image: adminer
restart: unless-stopped
ports:
- 8080:8080
volumes:
db_data:
src: