Updated Install Wekan Docker in production (markdown)

Jestine Paul 2017-06-14 00:31:49 +08:00
parent 10d20af998
commit b3944f4e14

@ -21,22 +21,48 @@ chmod +x /usr/local/bin/docker-compose
```yaml ```yaml
wekan: version: '2'
image: wekanteam/wekan:meteor-1.4
links: services:
- wekandb
environment: wekandb:
- MONGO_URL=mongodb://wekandb/wekan image: mongo:3.2.13
- ROOT_URL=http://mytodo.org container_name: wekan-db
- MAIL_URL=smtp://user:pass@mailserver.example.com:25/ restart: always
- MAIL_FROM=wekan-admin@example.com 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
ports: ports:
- 8081:80 - 8081:80
environment:
- MONGO_URL=mongodb://wekandb:27017/wekan
- ROOT_URL=http://localhost
- MAIL_URL=smtp://user:pass@mailserver.example.com:25/
- MAIL_FROM=wekan-admin@example.com
depends_on:
- wekandb
wekandb: volumes:
image: mongo wekan-db:
volumes: driver: local
- /home/wekan/data:/data/db wekan-db-dump:
driver: local
networks:
wekan-tier:
driver: bridge
``` ```
**Note:** we want to preserve the port 80 on the host, so we bind Wekan on port 8081. This port 8081 will next be bound to a vhost in apache (thus on port 80). **Note:** we want to preserve the port 80 on the host, so we bind Wekan on port 8081. This port 8081 will next be bound to a vhost in apache (thus on port 80).