-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
47 lines (42 loc) · 929 Bytes
/
docker-compose.yaml
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
43
44
45
46
47
version: '3.8'
services:
nginx:
image: nginx:latest
container_name: nginx_container
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ./:/var/www/html
ports:
- "8000:80"
depends_on:
- php
php:
build: .
container_name: php_container
volumes:
- ./:/var/www/html
mysql:
image: mysql:latest
container_name: mysql_container
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: padel-league
MYSQL_USER: admin
MYSQL_PASSWORD: admin
volumes:
- mysql_data:/var/lib/mysql
- ./backup.sql:/docker-entrypoint-initdb.d/backup.sql
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin_container
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_USER: admin
PMA_PASSWORD: admin
ports:
- "8080:80"
depends_on:
- mysql
volumes:
mysql_data: