mirror of
https://github.com/seriousm4x/UpSnap.git
synced 2026-03-31 06:24:09 -04:00
61 lines
2.0 KiB
YAML
61 lines
2.0 KiB
YAML
version: "3"
|
|
services:
|
|
app:
|
|
container_name: upsnap_app
|
|
image: seriousm4x/upsnap:latest
|
|
network_mode: host
|
|
restart: unless-stopped
|
|
environment:
|
|
- FRONTEND_PORT=8000
|
|
- BACKEND_PORT=8001
|
|
- BACKEND_IS_PROXIED=false # set this to true, if you use a reverse proxy
|
|
- DB_TYPE=postgres # required
|
|
- REDIS_HOST=127.0.0.1 # required (make sure to use the same ip as below)
|
|
- REDIS_PORT=6379 # required (make sure to use the same port as below)
|
|
- DB_HOST=127.0.0.1
|
|
- DB_PORT=5432
|
|
- DB_NAME=upsnap
|
|
- DB_USER=upsnap
|
|
- DB_PASSWORD=upsnap
|
|
#- PING_INTERVAL=5 # optional (default: 5 seconds)
|
|
#- DJANGO_SUPERUSER_USER=admin # optional (default: backend login disabled)
|
|
#- DJANGO_SUPERUSER_PASSWORD=admin # optional (default: backend login disabled)
|
|
#- DJANGO_SECRET_KEY=secret # optional (default: randomly generated)
|
|
#- DJANGO_DEBUG=True # optional (default: False)
|
|
#- DJANGO_LANGUAGE_CODE=de # optional (default: en)
|
|
#- DJANGO_TIME_ZONE=Europe/Berlin # optional (default: UTC)
|
|
#- NMAP_ARGS=-sP # optional, set this if your devices need special nmap args so they can be found (default: -sP)
|
|
#- PAGE_TITLE=Custom Title # optional, set a custom page title (default: UpSnap)
|
|
depends_on:
|
|
redis:
|
|
condition: service_healthy
|
|
postgres:
|
|
condition: service_healthy
|
|
redis:
|
|
container_name: upsnap_redis
|
|
image: redis:alpine
|
|
ports:
|
|
- "6379:6379"
|
|
restart: unless-stopped
|
|
command: redis-server --loglevel warning
|
|
healthcheck:
|
|
test: redis-cli ping
|
|
interval: 10s
|
|
postgres:
|
|
container_name: upsnap_postgres
|
|
image: postgres:14-alpine
|
|
ports:
|
|
- "5432:5432"
|
|
restart: unless-stopped
|
|
environment:
|
|
- "POSTGRES_USER=upsnap"
|
|
- "POSTGRES_PASSWORD=upsnap"
|
|
- "POSTGRES_DB=upsnap"
|
|
healthcheck:
|
|
test: pg_isready -U upsnap
|
|
interval: 10s
|
|
volumes:
|
|
- upsnap_db:/var/lib/postgresql/data
|
|
volumes:
|
|
upsnap_db:
|