-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
52 lines (48 loc) · 1 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
43
44
45
46
47
48
49
50
51
52
version: '3.7'
services:
app:
build: ./docker
init: true
container_name: php-app
ports:
- "80:80"
working_dir: /var/www/html
volumes:
- ./src:/var/www/html
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
XDEBUG_MODE: "develop, debug"
env_file:
- ./.env
networks:
- app-network
db:
image: mysql:8.0
container_name: mysql-db
ports:
- "3306:3306"
volumes:
- ./docker/dump/:/docker-entrypoint-initdb.d/
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_DB_PASS}
MYSQL_DATABASE: ${MYSQL_DB_DATABASE}
MYSQL_USER: ${MYSQL_DB_USER}
MYSQL_PASSWORD: ${MYSQL_DB_PASS}
env_file:
- ./.env
networks:
- app-network
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: phpmyadmin-app
ports:
- "8080:80"
environment:
- PMA_ARBITRARY=1
networks:
- app-network
networks:
app-network:
name: app-network
driver: bridge