29 lines
742 B
YAML
29 lines
742 B
YAML
|
|
version: '3.8'
|
||
|
|
|
||
|
|
services:
|
||
|
|
redunits-panel:
|
||
|
|
build: .
|
||
|
|
container_name: redunits-control-panel
|
||
|
|
ports:
|
||
|
|
- "8000:8000"
|
||
|
|
volumes:
|
||
|
|
# Mount Docker socket for container monitoring
|
||
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||
|
|
# Mount config file for easy editing without rebuild
|
||
|
|
- ./config.yaml:/app/config.yaml:ro
|
||
|
|
environment:
|
||
|
|
- PYTHONUNBUFFERED=1
|
||
|
|
# GID 988 = docker group on the VPS host — needed for docker.sock access
|
||
|
|
group_add:
|
||
|
|
- "988"
|
||
|
|
restart: unless-stopped
|
||
|
|
networks:
|
||
|
|
- redunits-network
|
||
|
|
labels:
|
||
|
|
- "com.redunits.service=control-panel"
|
||
|
|
- "com.redunits.version=1.0.0"
|
||
|
|
|
||
|
|
networks:
|
||
|
|
redunits-network:
|
||
|
|
driver: bridge
|