-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
59 lines (56 loc) · 1.37 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
services:
app:
depends_on:
- db
environment:
PRETTY_URLS: "1"
HTTPS: "0"
HTTPS_REDIRECT: "0"
LANG: "en-US"
BASE_URL: "http://localhost"
DB_TYPE: "mysql"
DB_HOST: "db"
DB_PORT: "3306"
DB_USER: "webtrees"
DB_PASS: "baddbpassword"
DB_NAME: "webtrees"
DB_PREFIX: "wt_"
WT_USER: "username"
WT_NAME: "Full Name"
WT_PASS: "badwtpassword"
WT_EMAIL: "[email protected]"
PUID: "1000"
PGID: "1000"
image: ghcr.io/nathanvaughn/webtrees:latest
ports:
- 80:80
# - 443:443
restart: unless-stopped
volumes:
# - ~/certs:/certs/
- app_data:/var/www/webtrees/data/
db:
environment:
MARIADB_DATABASE: "webtrees"
MARIADB_USER: "webtrees"
MARIADB_ROOT_PASSWORD: "badrootpassword"
MARIADB_PASSWORD: "baddbpassword"
# See: https://github.com/NathanVaughn/webtrees-docker/issues/145
image: docker.io/library/mariadb:11
restart: unless-stopped
volumes:
- db_data:/var/lib/mysql
# db:
# environment:
# POSTGRES_DB: "webtrees"
# POSTGRES_USER: "webtrees"
# POSTGRES_PASSWORD: "badpassword"
# image: docker.io/library/postgres:latest
# restart: unless-stopped
# volumes:
# - db_data:/var/lib/postgresql/data
volumes:
db_data:
driver: local
app_data:
driver: local