mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
835 B
50 lines
835 B
# -- DEV DOCKER-COMPOSE --
|
|
# -- DO NOT USE IN PRODUCTION! --
|
|
|
|
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
|
|
networks:
|
|
- wikinet
|
|
ports:
|
|
- "15432:5432"
|
|
|
|
adminer:
|
|
image: adminer:latest
|
|
logging:
|
|
driver: "none"
|
|
networks:
|
|
- wikinet
|
|
ports:
|
|
- "3001:8080"
|
|
|
|
wiki:
|
|
build:
|
|
context: .
|
|
dockerfile: dev/docker-postgres/Dockerfile
|
|
depends_on:
|
|
- db
|
|
networks:
|
|
- wikinet
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- .:/wiki
|
|
- /wiki/node_modules
|
|
command: ["sh", "./dev/docker-postgres/init.sh"]
|
|
|
|
networks:
|
|
wikinet:
|
|
|
|
volumes:
|
|
db-data:
|