-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.example.yaml
More file actions
53 lines (52 loc) · 1.19 KB
/
docker-compose.example.yaml
File metadata and controls
53 lines (52 loc) · 1.19 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
44
45
46
47
48
49
50
51
52
53
version: '3'
x-common:
database:
&db-environment
MYSQL_PASSWORD: &db-password "CHANGE"
mediawiki:
&mw-environment
MW_SITENAME: "The Fire Panel"
MW_SERVER: "https://wiki.thefirepanel.com"
MW_SECRET: "CHANGETO32CHARSTRING"
services:
mediawiki:
image: ghcr.io/thefirepanel/tfpwiki:main
restart: always
container_name: mediawiki
ports:
- 8080:80
links:
- database
depends_on:
database:
condition: service_healthy
environment:
<<: *mw-environment
DEBUG: true
DB_HOST: database
DB_NAME: my_wiki
DB_USER: wikiuser
DB_PASS: *db-password
# Uncomment if using debug
#volumes:
# - ./LocalSettings.php:/var/www/html/LocalSettings.php
database:
image: mariadb
restart: always
environment:
<<: *db-environment
MYSQL_DATABASE: my_wiki
MYSQL_USER: wikiuser
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
healthcheck:
test: [ "CMD", "healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized" ]
start_period: 1m
start_interval: 10s
interval: 1m
timeout: 5s
retries: 3
volumes:
- db:/var/lib/mysql
volumes:
images:
db: