forked from YesWiki/yeswiki
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·43 lines (40 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
executable file
·43 lines (40 loc) · 1.1 KB
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
version: '3.3'
services:
yeswiki:
build: .
container_name: yeswiki
ports:
- "81:80"
# these volumes help develop locally, close to what is shipped on Docker Hub
volumes:
- .:/var/www/html
depends_on:
- db
environment:
YESWIKI_MYSQL_HOST: db
YESWIKI_MYSQL_USER: root
YESWIKI_MYSQL_PASSWORD: root
YESWIKI_MYSQL_DATABASE: yeswiki_dev
db:
image: mysql:5.6
container_name: db
volumes:
- ./.db:/var/lib/mysql
environment:
- MYSQL_DATABASE=yeswiki_dev
- MYSQL_ROOT_PASSWORD=root
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-u", "root", "-p$$MYSQL_ROOT_PASSWORD"]
timeout: 20s
retries: 10
myadmin:
image: phpmyadmin/phpmyadmin
container_name: myadmin
ports:
- "8080:80"
depends_on:
- db
environment:
PMA_HOST: db
PMA_USER: root
PMA_PASSWORD: root