Created
September 21, 2017 15:49
-
-
Save anonymous/4312cd75a6768996b164f1f6822a680b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
wekandb: | |
image: mongo:3.2.16 | |
container_name: wekan-db | |
restart: always | |
command: mongod --smallfiles --oplogSize 128 | |
networks: | |
- wekan-tier | |
expose: | |
- 27017 | |
volumes: | |
- wekan-db:/data/db | |
- wekan-db-dump:/dump | |
wekan: | |
image: wekanteam/wekan:latest | |
container_name: wekan-app | |
restart: always | |
networks: | |
- wekan-tier | |
build: | |
context: . | |
dockerfile: Dockerfile | |
args: | |
- NODE_VERSION=${NODE_VERSION} | |
- METEOR_RELEASE=${METEOR_RELEASE} | |
- NPM_VERSION=${NPM_VERSION} | |
- ARCHITECTURE=${ARCHITECTURE} | |
- SRC_PATH=${SRC_PATH} | |
- METEOR_EDGE=${METEOR_EDGE} | |
- USE_EDGE=${USE_EDGE} | |
ports: | |
- 80:80 | |
environment: | |
- MONGO_URL=mongodb://wekandb:27017/wekan | |
- ROOT_URL=http://localhost | |
depends_on: | |
- wekandb | |
volumes: | |
wekan-db: | |
driver: local | |
wekan-db-dump: | |
driver: local | |
networks: | |
wekan-tier: | |
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker network create wekan-tier | |
docker run --name wekan-db --net wekan-tier --restart always -p 27017:27017 -v /path/to/wekan-db:/data/db -v /path/to/wekan-db-dump:/dump mongo:3.2.16 mongod --smallfiles --oplog 128 | |
docker build -t wekanteam/wekan:latest --args { ... } . | |
docker run --name wekan-app --net wekan-tier --restart always -p 80:80 -e MONGO_URL=<> -e ROOT_URL=<> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment