-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·66 lines (61 loc) · 1.26 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '3'
services:
app:
build:
context: ./
dockerfile: ./docker/app.dockerfile
working_dir: /var/www
volumes:
- ./:/var/www
environment:
- "DB_PORT=3306"
- "DB_HOST=database"
networks:
- network
web:
build:
context: ./
dockerfile: ./docker/web.dockerfile
working_dir: /var/www
volumes:
- ./:/var/www
ports:
- 8082:80
networks:
- network
database:
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password
volumes:
- ./docker/dbdata:/var/lib/mysql
- ./docker/mysql.cnf:/etc/mysql/conf.d/mysql.cnf
environment:
- "MYSQL_DATABASE=webtv"
- "MYSQL_USER=homestead"
- "MYSQL_PASSWORD=secret"
- "MYSQL_ROOT_PASSWORD=secret"
ports:
- "33062:3306"
networks:
- network
dbadmin:
image: adminer
volumes:
- ./docker/adminer/adminer.css:/var/www/html/adminer.css
links:
- database
ports:
- 8085:8080
environment:
- "PMA_HOST=database"
- "PMA_PORT=3306"
- "MYSQL_USER=homestead"
- "MYSQL_PASSWORD=secret"
- "MYSQL_ROOT_PASSWORD=secret"
networks:
- network
volumes:
dbdata:
networks:
network:
driver: bridge