Refactor: Reorganize services into standalone structure
This commit is contained in:
67
services/standalone/Infrastructure/docker-compose.yml
Normal file
67
services/standalone/Infrastructure/docker-compose.yml
Normal file
@@ -0,0 +1,67 @@
|
||||
version: '3.8'
|
||||
|
||||
networks:
|
||||
traefik-public:
|
||||
external: true
|
||||
homelab-backend:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
komodo_data:
|
||||
komodo_mongo_data:
|
||||
|
||||
services:
|
||||
komodo-mongo:
|
||||
image: mongo:7
|
||||
container_name: komodo-mongo
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- komodo_mongo_data:/data/db
|
||||
networks:
|
||||
- homelab-backend
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
komodo-core:
|
||||
image: ghcr.io/moghtech/komodo:latest
|
||||
container_name: komodo-core
|
||||
depends_on:
|
||||
- komodo-mongo
|
||||
environment:
|
||||
- KOMODO_DATABASE_ADDRESS=komodo-mongo:27017
|
||||
volumes:
|
||||
- komodo_data:/config
|
||||
networks:
|
||||
- traefik-public
|
||||
- homelab-backend
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.komodo.rule=Host(`komodo.sterl.xyz`)"
|
||||
- "traefik.http.routers.komodo.entrypoints=websecure"
|
||||
- "traefik.http.routers.komodo.tls.certresolver=cfresolver"
|
||||
- "traefik.http.services.komodo.loadbalancer.server.port=9120"
|
||||
- "docktail.enable=true"
|
||||
- "docktail.name=komodo"
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
komodo-periphery:
|
||||
image: ghcr.io/moghtech/komodo-periphery:latest
|
||||
container_name: komodo-periphery
|
||||
environment:
|
||||
- PERIPHERY_Id=periphery-standalone
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
restart: unless-stopped
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
Reference in New Issue
Block a user