-
-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathdocker-compose.yaml
executable file
·88 lines (81 loc) · 1.64 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: "3.8"
services:
db:
image: mysql:latest
#command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: vvveb
MYSQL_DATABASE: vvveb
MYSQL_USER: vvveb
MYSQL_PASSWORD: vvveb
volumes:
- db:/var/lib/mysql
networks:
- internal
php:
build:
context: .
dockerfile: Dockerfile
environment:
VVVEB_HOST: db
VVVEB_PASSWORD: vvveb
DB_HOST: db
DB_DATABASE: vvveb
DB_USER: vvveb
DB_PASSWORD: vvveb
DB_ENGINE: mysqli
volumes:
- ./:/var/www/html/
links:
- db:mysql
depends_on:
- db
networks:
- internal
# uncomment lines bellow for auto install
#vvveb-install:
#build:
#context: .
#volumes:
#- ./:/var/www/html/
#entrypoint:
#[
#"bash",
#"-c",
#"sleep 5 && php cli.php install module=index host=db user=vvveb password=vvveb database=vvveb admin[email][email protected] admin[password]=admin",
#]
#depends_on:
#- php
#networks:
#- internal
nginx:
image: nginx:alpine
ports:
- "8080:80"
volumes:
- ./:/var/www/html/
- ./nginx-docker.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
networks:
- internal
phpmyadmin:
image: phpmyadmin:latest
ports:
- "8081:80"
environment:
- PMA_ARBITRARY=1
- PMA_USER=vvveb
- PMA_PASSWORD=vvveb
- PMA_HOST=db
- PMA_PORT=3306
depends_on:
- db
networks:
- internal
volumes:
db:
networks:
internal:
driver: bridge