2019-01-07 03:03:34 +00:00
|
|
|
version: "3"
|
2017-04-29 00:17:10 +00:00
|
|
|
services:
|
2019-12-05 22:49:08 +00:00
|
|
|
|
2019-01-07 03:03:34 +00:00
|
|
|
db:
|
2019-12-05 22:49:08 +00:00
|
|
|
image: postgres:11-alpine
|
2017-04-29 00:17:10 +00:00
|
|
|
environment:
|
2019-01-07 03:03:34 +00:00
|
|
|
POSTGRES_DB: wiki
|
|
|
|
POSTGRES_PASSWORD: wikijsrocks
|
|
|
|
POSTGRES_USER: wikijs
|
|
|
|
logging:
|
|
|
|
driver: "none"
|
2019-12-05 22:49:08 +00:00
|
|
|
restart: unless-stopped
|
2017-08-12 19:11:27 +00:00
|
|
|
volumes:
|
2019-01-07 03:03:34 +00:00
|
|
|
- db-data:/var/lib/postgresql/data
|
|
|
|
|
|
|
|
wiki:
|
2019-11-18 03:57:49 +00:00
|
|
|
image: requarks/wiki:2
|
2019-01-07 03:03:34 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
environment:
|
|
|
|
DB_TYPE: postgres
|
|
|
|
DB_HOST: db
|
|
|
|
DB_PORT: 5432
|
|
|
|
DB_USER: wikijs
|
|
|
|
DB_PASS: wikijsrocks
|
|
|
|
DB_NAME: wiki
|
2019-12-05 22:49:08 +00:00
|
|
|
restart: unless-stopped
|
2019-01-07 03:03:34 +00:00
|
|
|
ports:
|
2019-12-05 22:49:08 +00:00
|
|
|
- "80:3000"
|
2019-01-07 03:03:34 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
db-data:
|