diff options
author | Christoph Jahn <christoph.jahn@scherdel.de> | 2019-08-07 12:18:51 +0200 |
---|---|---|
committer | Christoph Jahn <cj@road42.de> | 2019-08-28 10:13:09 +0000 |
commit | 3978c08757aa0c5fbd41f6e9138033ff580c7b52 (patch) | |
tree | 8d03818ff30b8775be797442c86c44346073f0db /.devcontainer/docker-compose.yml | |
parent | a97360dcfba2bf1dd1be115dd91dd1dde49ded69 (diff) | |
download | wekan-3978c08757aa0c5fbd41f6e9138033ff580c7b52.tar.gz wekan-3978c08757aa0c5fbd41f6e9138033ff580c7b52.tar.bz2 wekan-3978c08757aa0c5fbd41f6e9138033ff580c7b52.zip |
Add debugging in containers for vscode
Diffstat (limited to '.devcontainer/docker-compose.yml')
-rw-r--r-- | .devcontainer/docker-compose.yml | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml new file mode 100644 index 00000000..0f5f272b --- /dev/null +++ b/.devcontainer/docker-compose.yml @@ -0,0 +1,53 @@ +version: '3.7' + +services: + + wekandb-dev: + image: mongo:4.0.11 + container_name: wekan-dev-db + restart: unless-stopped + command: mongod --smallfiles --oplogSize 128 + networks: + - wekan-dev-tier + expose: + - 27017 + volumes: + - wekan-dev-db:/data/db + - wekan-dev-db-dump:/dump + + wekan-dev: + container_name: wekan-dev-app + restart: always + networks: + - wekan-dev-tier + build: + context: . + dockerfile: Dockerfile + ports: + - 3000:3000 + - 9229:9229 + environment: + - MONGO_URL=mongodb://wekandb-dev:27017/wekan + - ROOT_URL=http://localhost:3000 + #- MAIL_URL=smtp://user:pass@mailserver.example.com:25/ + - MAIL_URL=smtp://<mail_url>:25/?ignoreTLS=true&tls={rejectUnauthorized:false} + - MAIL_FROM=Wekan Notifications <noreply.wekan@mydomain.com> + - WITH_API=true + - RICHER_CARD_COMMENT_EDITOR=true + - BROWSER_POLICY_ENABLED=true + depends_on: + - wekandb-dev + volumes: + - ..:/app + command: + sleep infinity + +volumes: + wekan-dev-db: + driver: local + wekan-dev-db-dump: + driver: local + +networks: + wekan-dev-tier: + driver: bridge |