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.
51 lines
847 B
51 lines
847 B
6 years ago
|
# -- DEV DOCKER-COMPOSE --
|
||
|
# -- DO NOT USE IN PRODUCTION! --
|
||
|
|
||
|
version: "3"
|
||
|
services:
|
||
|
db:
|
||
6 years ago
|
image: mysql:5.7
|
||
6 years ago
|
environment:
|
||
6 years ago
|
MYSQL_DATABASE: wiki
|
||
|
MYSQL_PASSWORD: wikijsrocks
|
||
|
MYSQL_USER: wikijs
|
||
|
MYSQL_ROOT_PASSWORD: wikijsrocks
|
||
6 years ago
|
logging:
|
||
|
driver: "none"
|
||
|
volumes:
|
||
6 years ago
|
- db-data:/var/lib/mysql
|
||
6 years ago
|
networks:
|
||
|
- wikinet
|
||
|
ports:
|
||
6 years ago
|
- "13306:3306"
|
||
6 years ago
|
|
||
6 years ago
|
adminer:
|
||
|
image: adminer:latest
|
||
|
logging:
|
||
|
driver: "none"
|
||
|
networks:
|
||
|
- wikinet
|
||
|
ports:
|
||
|
- "3001:8080"
|
||
|
|
||
6 years ago
|
wiki:
|
||
|
build:
|
||
|
context: .
|
||
6 years ago
|
dockerfile: dev/docker-mysql/Dockerfile
|
||
6 years ago
|
depends_on:
|
||
|
- db
|
||
|
networks:
|
||
|
- wikinet
|
||
|
ports:
|
||
|
- "3000:3000"
|
||
|
volumes:
|
||
6 years ago
|
- .:/wiki
|
||
|
- /wiki/node_modules
|
||
6 years ago
|
command: ["sh", "./dev/docker-mysql/init.sh"]
|
||
6 years ago
|
|
||
|
networks:
|
||
|
wikinet:
|
||
|
|
||
|
volumes:
|
||
|
db-data:
|