62 lines
1001 B
YAML
62 lines
1001 B
YAML
# -- 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: mariadb:10.3
|
|
environment:
|
|
MYSQL_DATABASE: wiki
|
|
MYSQL_PASSWORD: wikijsrocks
|
|
MYSQL_USER: wikijs
|
|
MYSQL_ROOT_PASSWORD: wikijsrocks
|
|
logging:
|
|
driver: "none"
|
|
volumes:
|
|
- db-data:/var/lib/mysql
|
|
networks:
|
|
- wikinet
|
|
ports:
|
|
- "13306:3306"
|
|
|
|
adminer:
|
|
image: adminer:latest
|
|
logging:
|
|
driver: "none"
|
|
networks:
|
|
- wikinet
|
|
ports:
|
|
- "3001:8080"
|
|
|
|
wiki:
|
|
build:
|
|
context: .
|
|
dockerfile: dev/docker-mariadb/Dockerfile
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
networks:
|
|
- wikinet
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- .:/wiki
|
|
- /wiki/node_modules
|
|
command: ["sh", "./dev/docker-mariadb/init.sh"]
|
|
|
|
networks:
|
|
wikinet:
|
|
|
|
volumes:
|
|
db-data:
|