docker-compose

This commit is contained in:
Timo Volkmann 2021-10-29 22:56:11 +02:00
parent af25802d87
commit b4ada4a970
4 changed files with 30 additions and 8 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

4
.gitignore vendored
View File

@ -1,4 +1,6 @@
node_modules/
.idea/
.vscode/
.vs/
.vs/
.DS_Store
/.meteor

BIN
.meteor/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -1,28 +1,48 @@
version: "3"
services:
smartgarden-meteor:
server:
image: tvm/smart_garden:latest
build:
context: .
dockerfile: Dockerfile
restart: always
environment:
ROOT_URL: ${APP_ROOT_URL:-https://smartgarden.timovolkmann.de}
MONGO_URL: mongodb://garden:99009911@cloud.timovolkmann.de:27017/Smart_Garden
ROOT_URL: ${APP_ROOT_URL:-http://smartgarden.timovolkmann.de}
MONGO_URL: mongodb://admin:03112546@mongo:27017/Smart_Garden
PORT: 3000
labels:
- traefik.enable=true
- traefik.http.routers.smartgarden-meteor-http.rule=Host(`smartgarden.timovolkmann.de`)
- traefik.http.routers.smartgarden-meteor-http.entrypoints=web
- traefik.http.routers.smartgarden-meteor-http.middlewares=https-redirect@file
- traefik.http.routers.smartgarden-meteor-https.rule=Host(`smartgarden.timovolkmann.de`)
- traefik.http.routers.smartgarden-meteor-https.entrypoints=web-secure
- traefik.http.routers.smartgarden-meteor-https.tls.certresolver=le
# - traefik.http.routers.smartgarden-meteor-http.middlewares=https-redirect@file
# - traefik.http.routers.smartgarden-meteor-https.rule=Host(`smartgarden.timovolkmann.de`)
# - traefik.http.routers.smartgarden-meteor-https.entrypoints=web-secure
# - traefik.http.routers.smartgarden-meteor-https.tls.certresolver=le
- traefik.http.services.smartgarden-meteor-service.loadbalancer.server.port=3000
- traefik.docker.network=traefik_default
networks:
- traefik_default
mqtt:
image: eclipse-mosquitto
restart: always
ports:
- 1883:1883
mongo:
image: mongo:latest
volumes:
- db-data:/data/db
- mongo-config:/data/configdb
ports:
- 27017:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=03112546
- MONGO_INITDB_DATABASE=Smart_Garden
volumes:
db-data:
mongo-config:
networks:
traefik_default: