wikijs-fork/dev/docker-mysql/docker-compose.yml

62 lines
994 B
YAML
Raw Normal View History

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:
2019-02-10 00:10:34 +00:00
image: mysql:5.7
2018-08-28 04:23:05 +00:00
environment:
2019-02-10 00:10:34 +00:00
MYSQL_DATABASE: wiki
MYSQL_PASSWORD: wikijsrocks
MYSQL_USER: wikijs
MYSQL_ROOT_PASSWORD: wikijsrocks
2018-08-28 04:23:05 +00:00
logging:
driver: "none"
volumes:
2019-02-10 00:10:34 +00:00
- db-data:/var/lib/mysql
2018-08-28 04:23:05 +00:00
networks:
- wikinet
ports:
2019-02-10 00:10:34 +00:00
- "13306:3306"
2018-08-28 04:23:05 +00:00
adminer:
image: adminer:latest
logging:
driver: "none"
networks:
- wikinet
ports:
- "3001:8080"
2018-08-28 04:23:05 +00:00
wiki:
build:
context: .
2019-02-10 00:10:34 +00:00
dockerfile: dev/docker-mysql/Dockerfile
2018-08-28 04:23:05 +00:00
depends_on:
- db
- redis
networks:
- wikinet
ports:
- "3000:3000"
volumes:
- .:/wiki
- /wiki/node_modules
2019-02-10 00:10:34 +00:00
command: ["sh", "./dev/docker-mysql/init.sh"]
2018-08-28 04:23:05 +00:00
networks:
wikinet:
volumes:
db-data: