34 lines
800 B
YAML
34 lines
800 B
YAML
services:
|
|
app:
|
|
build: ./server
|
|
container_name: info-user-app
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./data:/app/data
|
|
environment:
|
|
- SECRET_KEY=${SECRET_KEY:-change-me-in-production}
|
|
- AGENT_TOKEN=${AGENT_TOKEN:-agent-secret-token}
|
|
- DATABASE_URL=sqlite:///./data/monitor.db
|
|
- ADMIN_USERNAME=${ADMIN_USERNAME:-admin}
|
|
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin}
|
|
- CREATE_ADMIN_ON_STARTUP=true
|
|
networks:
|
|
- info-user-net
|
|
|
|
nginx:
|
|
image: nginx:alpine
|
|
container_name: info-user-nginx
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${HTTP_PORT:-80}:80"
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
|
depends_on:
|
|
- app
|
|
networks:
|
|
- info-user-net
|
|
|
|
networks:
|
|
info-user-net:
|
|
driver: bridge
|