2018-08-28 04:23:05 +00:00
|
|
|
# -- DEV DOCKER-COMPOSE --
|
|
|
|
# -- DO NOT USE IN PRODUCTION! --
|
|
|
|
|
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:4-alpine
|
|
|
|
ports:
|
|
|
|
- "16379:6379"
|
|
|
|
logging:
|
|
|
|
driver: "none"
|
|
|
|
networks:
|
|
|
|
- wikinet
|
|
|
|
|
|
|
|
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
|
|
|
|
networks:
|
|
|
|
- wikinet
|
|
|
|
ports:
|
|
|
|
- "15432:5432"
|
|
|
|
|
|
|
|
wiki:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: dev/docker/Dockerfile
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
networks:
|
|
|
|
- wikinet
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
volumes:
|
|
|
|
- .:/var/wiki
|
|
|
|
- /var/wiki/node_modules
|
2018-12-09 01:51:55 +00:00
|
|
|
command: ["sh", "./dev/docker/init.sh"]
|
2018-08-28 04:23:05 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
wikinet:
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db-data:
|