wikijs-fork/dev/examples/docker-compose.yml
Elliott Shugerman 5b36988d6d docs: remove wikinet network from docker-compose.yml example (#1144)
This network is unnecessary because Compose creates a network for all services by default.
2019-10-25 18:16:19 -04:00

30 lines
576 B
YAML

version: "3"
services:
db:
image: postgres:9-alpine
environment:
POSTGRES_DB: wiki
POSTGRES_PASSWORD: wikijsrocks
POSTGRES_USER: wikijs
logging:
driver: "none"
volumes:
- db-data:/var/lib/postgresql/data
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
ports:
- "3000:3000" # <-- replace with "80:3000" to listen on port 80 instead
volumes:
db-data: