-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·44 lines (39 loc) · 1.14 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: '3.9'
services:
mongo:
image: mongo:latest
restart: always
networks:
- backend
container_name: mongo
volumes:
- ./data/db:/data/db
ports:
- 27010:27017
mongo-express:
image: mongo-express
restart: always
networks:
- backend
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: alsruf36
ME_CONFIG_MONGODB_ADMINPASSWORD: ch86868686
ME_CONFIG_MONGODB_URL: mongodb://alsruf36:ch86868686@mongo:27017/
labels:
- "traefik.enable=true"
- "traefik.docker.network=backend"
# HTTP Routers
- "traefik.http.routers.mongo-express-rtr.entrypoints=https"
- "traefik.http.routers.mongo-express-rtr.rule=Host(`mongo.${TRF_DOMAIN}`)"
- "traefik.http.routers.mongo-express-rtr.tls=true"
- "traefik.http.routers.mongo-express-rtr.tls.certresolver=leresolver"
# Services
- "traefik.http.routers.mongo-express-rtr.service=mongo-express-svc"
- "traefik.http.services.mongo-express-svc.loadbalancer.server.port=8081"
networks:
frontend:
name: frontend
driver: bridge
backend:
name: backend
driver: bridge