-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (36 loc) · 834 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (36 loc) · 834 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
version: '3.1'
services:
schedule-web:
"build":
"context": "./"
"dockerfile": "Dockerfile-apache"
container_name: schedule_php_web
depends_on:
- schedule-bdd
volumes:
- .:/var/www/html/
ports:
- "80:80"
stdin_open: true
tty: true
schedule-bdd:
image: mysql:8.0.17
environment:
MYSQL_ROOT_PASSWORD: mysql
MYSQL_DATABASE: schedule
MYSQL_USER: schedule
MYSQL_PASSWORD: mysql
volumes:
- ./database:/var/lib/mysql
- ./sql:/docker-entrypoint-initdb.d
command: --default-authentication-plugin=mysql_native_password
schedule-phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "81:80"
depends_on:
- schedule-bdd
environment:
PMA_HOST: schedule-bdd
PMA_USER: root
PMA_PASSWORD: mysql