FEAT: Provide example configuration for testing
This commit is contained in:
parent
460f64dd0c
commit
e98462b4aa
2 changed files with 35 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -1,5 +1,5 @@
|
|||
build:
|
||||
docker build -t tmp .
|
||||
docker build -t zombi/mediawiki:1.37.2 .
|
||||
|
||||
run:
|
||||
docker-compose up
|
||||
|
|
34
docker-compose.yaml
Normal file
34
docker-compose.yaml
Normal file
|
@ -0,0 +1,34 @@
|
|||
version: "3.8"
|
||||
|
||||
volumes:
|
||||
database:
|
||||
wikistore:
|
||||
|
||||
networks:
|
||||
internal:
|
||||
|
||||
services:
|
||||
mediawiki:
|
||||
image: zombi/mediawiki:1.37.2
|
||||
environment:
|
||||
WG_DB_TYPE: postgres
|
||||
WG_DB_SERVER: db
|
||||
WG_DB_PORT: 5432
|
||||
WG_DB_NAME: mediawiki
|
||||
WG_DB_USER: mediawiki
|
||||
WG_DB_PASSWORD: mediawiki
|
||||
WG_SERVER: "http://localhost:8080"
|
||||
SEMANTIC_URL: "wiki.example.com"
|
||||
MEDIAWIKI_ADMIN_PASS: "poGh3ohphu2oNgeishiu"
|
||||
volumes:
|
||||
- wikistore:/var/www/localstores
|
||||
ports:
|
||||
- 8080:80
|
||||
db:
|
||||
image: library/postgres:14
|
||||
environment:
|
||||
POSTGRES_DB: mediawiki
|
||||
POSTGRES_USER: mediawiki
|
||||
POSTGRES_PASSWORD: mediawiki
|
||||
volumes:
|
||||
- database:/var/lib/postgresql/data
|
Loading…
Reference in a new issue