add mongodb support
This commit is contained in:
23
project/db/mongo-express/mongo-express.yml
Normal file
23
project/db/mongo-express/mongo-express.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
services:
|
||||
mongo-express:
|
||||
extends:
|
||||
file: ${TEMPLATES_PATH}
|
||||
service: default
|
||||
image: mongo-express
|
||||
container_name: mongo-express
|
||||
ports:
|
||||
- 8086:8081
|
||||
environment:
|
||||
ME_CONFIG_BASICAUTH_USERNAME: ${MONGO_EXPRESS_USERNAME}
|
||||
ME_CONFIG_BASICAUTH_PASSWORD: ${MONGO_EXPRESS_PASSWORD}
|
||||
ME_CONFIG_MONGODB_ADMINUSERNAME: ${MONGO_EXPRESS_USERNAME}
|
||||
ME_CONFIG_MONGODB_ADMINPASSWORD: ${MONGO_EXPRESS_PASSWORD}
|
||||
ME_CONFIG_MONGODB_URL: mongodb://${MONGO_DB_USERNAME}:${MONGO_DB_ROOT_PASSWORD}@mongodb:27017/
|
||||
labels:
|
||||
# Watchtower
|
||||
- "com.centurylinklabs.watchtower.enable=true"
|
||||
# Traefik
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.mongo-express.rule=Host(`mongo-express.${LOCAL_DOMAIN}`)"
|
||||
- "traefik.http.routers.mongo-express.entrypoints=https"
|
||||
- "traefik.http.routers.mongo-express.tls=true"
|
||||
Reference in New Issue
Block a user