-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose-template.yml
45 lines (40 loc) · 1.06 KB
/
docker-compose-template.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
# WEBTREES DOCKER COMPOSE
#
# start http://localhost:§§PORT
# default user: admin / changethepassword
#
version: '2'
services:
webtrees:
image: lomadi/webtrees:latest
container_name: webtrees
links:
- webtrees-database:webtrees-database
ports:
- "§§PORT:80"
depends_on:
- webtrees-database
- webtrees-data-volumes
volumes_from:
- webtrees-data-volumes
webtrees-database:
build:
context: ./images/database
image: lomadi/webtrees-database
container_name: webtrees-database
user: root
environment:
- MYSQL_ROOT_PASSWORD=mustnotchange
- MYSQL_DATABASE=webtrees
- MYSQL_USER=webtrees
- MYSQL_PASSWORD=mustnotchange
volumes_from:
- webtrees-data-volumes
depends_on:
- webtrees-data-volumes
webtrees-data-volumes:
image: busybox
container_name: webtrees-data-volumes
volumes:
- §§FOLDER/webtrees/var/lib/mysql:/var/lib/mysql
- §§FOLDER/webtrees/var/www/html/webtrees/data:/var/www/html/webtrees/data