-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·41 lines (40 loc) · 1.03 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
version: '3'
services:
web:
container_name: ${DOCKER_NAME}_web
build:
context: .
args:
user: ${USER}
uid: ${UID}
ports:
- "80:80"
volumes:
- ./:/var/www/app
depends_on:
- database_server
database_server:
container_name: ${DOCKER_NAME}_database
image: mysql:5.7
ports:
- "3306:3306"
restart: always
volumes:
- ./storage/app/mysql:/var/lib/mysql
environment:
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- SERVICE_NAME=mysql
phpmyadmin:
container_name: ${DOCKER_NAME}_phpmyadmin
image: phpmyadmin/phpmyadmin
restart: always
ports:
- "8080:80"
depends_on:
- database_server
environment:
PMA_HOST: database_server
PMA_PORT: 3306
PMA_USER: root
PMA_PASSWORD: root