wikijs-fork/dev/examples/docker-compose.yml

37 lines
658 B
YAML
Raw Normal View History

2019-01-07 03:03:34 +00:00
version: "3"
services:
2019-01-07 03:03:34 +00:00
db:
image: postgres:9-alpine
environment:
2019-01-07 03:03:34 +00:00
POSTGRES_DB: wiki
POSTGRES_PASSWORD: wikijsrocks
POSTGRES_USER: wikijs
logging:
driver: "none"
volumes:
2019-01-07 03:03:34 +00:00
- db-data:/var/lib/postgresql/data
networks:
- wikinet
wiki:
image: requarks/wiki:beta
depends_on:
- db
environment:
DB_TYPE: postgres
DB_HOST: db
DB_PORT: 5432
DB_USER: wikijs
DB_PASS: wikijsrocks
DB_NAME: wiki
networks:
- wikinet
ports:
- "3000:3000" # <-- replace with "80:3000" to listen on port 80 instead
networks:
wikinet:
volumes:
db-data: