forked from Haxxnet/Compose-Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (57 loc) · 1.53 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
version: "3"
services:
app:
image: nathanvaughn/webtrees:latest
container_name: webtrees
depends_on:
- db
environment:
PRETTY_URLS: "1"
HTTPS: "0"
HTTPS_REDIRECT: "0"
LANG: "en-US"
BASE_URL: "https://family.example.com" # please adjust to your FQDN URL
DB_TYPE: "mysql"
DB_HOST: "db"
DB_PORT: "3306"
DB_USER: "webtrees"
DB_PASS: "badpassword"
DB_NAME: "webtrees"
DB_PREFIX: "wt_"
PUID: "1000"
PGID: "1000"
ports:
- 8080:80
expose:
- 80
restart: unless-stopped
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/webtrees/data:/var/www/webtrees/data/
#networks:
# - proxy
# - webtrees-default
#labels:
# - traefik.enable=true
# - traefik.docker.network=proxy
# - traefik.http.routers.webtrees.rule=Host(`family.lrvt.de`)
# - traefik.http.services.webtrees.loadbalancer.server.port=80
# # Part for optional traefik middlewares
# - traefik.http.routers.webtrees.middlewares=local-ipwhitelist@file
db:
image: mariadb:latest
container_name: webtrees-db
environment:
MARIADB_DATABASE: "webtrees"
MARIADB_USER: "webtrees"
MARIADB_ROOT_PASSWORD: "badpassword"
MARIADB_PASSWORD: "badpassword"
restart: unless-stopped
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/webtrees/db:/var/lib/mysql
#networks:
# - webtrees-default
#networks:
# proxy:
# external: true
# webtrees-default:
# external: false