-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (36 loc) · 1.05 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
version: '3'
services:
webtrees-db:
container_name: ${DB_CONTAINER_NAME}
image: mariadb:10
restart: unless-stopped
volumes:
- ${LOCAL_DB_DIR}:/var/lib/mysql
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
webtrees-site:
depends_on:
- ${DB_CONTAINER_NAME}
container_name: ${APP_CONTAINER_NAME}
image: justinvoelker/docker-webtrees:${WEBTREES_VERSION}
restart: unless-stopped
volumes:
- ${WEBTREES_DATA_DIR}:/var/www/html/data
environment:
SERVER_NAME: ${VIRTUAL_HOST}
WEBTREES_DB_HOST: ${DB_CONTAINER_NAME}
WEBTREES_DB_PORT: 3306
WEBTREES_DB_USER: ${MYSQL_USER}
WEBTREES_DB_PASS: ${MYSQL_PASSWORD}
WEBTREES_DB_NAME: ${MYSQL_DATABASE}
WEBTREES_TBL_PFX: wt_
VIRTUAL_HOST: ${VIRTUAL_HOST}
LETSENCRYPT_HOST: ${LETSENCRYPT_HOST}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
networks:
default:
external:
name: ${NETWORK}