2024-04-08 17:32:56 -03:00
|
|
|
services:
|
|
|
|
routerfleet-postgres:
|
|
|
|
container_name: routerfleet-postgres
|
|
|
|
restart: unless-stopped
|
2024-11-07 11:35:47 -03:00
|
|
|
image: postgres:16
|
2024-04-08 17:32:56 -03:00
|
|
|
volumes:
|
|
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=${POSTGRES_DB}
|
|
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
2024-04-12 15:46:36 -03:00
|
|
|
- TZ=${TIMEZONE}
|
2024-04-08 17:32:56 -03:00
|
|
|
|
|
|
|
routerfleet:
|
|
|
|
container_name: routerfleet
|
|
|
|
restart: unless-stopped
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
environment:
|
|
|
|
- SERVER_ADDRESS=${SERVER_ADDRESS}
|
|
|
|
- DEBUG_MODE=${DEBUG_MODE}
|
|
|
|
- DATABASE_ENGINE=${DATABASE_ENGINE}
|
|
|
|
- POSTGRES_HOST=${POSTGRES_HOST}
|
|
|
|
- POSTGRES_PORT=${POSTGRES_PORT}
|
|
|
|
- POSTGRES_DB=${POSTGRES_DB}
|
|
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
2024-04-12 15:46:36 -03:00
|
|
|
- TZ=${TIMEZONE}
|
2024-11-07 11:35:47 -03:00
|
|
|
- COMPOSE_VERSION=08a
|
2024-04-08 17:32:56 -03:00
|
|
|
- COMPOSE_TYPE=with-postgres
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- sqlite_volume:/var/lib/routerfleet_sqlite/
|
|
|
|
- media_root:/var/lib/routerfleet/
|
|
|
|
- static_volume:/app_static_files/
|
2024-04-15 13:59:13 -03:00
|
|
|
- app_secrets:/app_secrets/
|
2024-04-08 17:32:56 -03:00
|
|
|
command: /bin/bash /app/init.sh
|
|
|
|
depends_on:
|
|
|
|
- routerfleet-postgres
|
|
|
|
|
|
|
|
routerfleet-cron:
|
|
|
|
container_name: routerfleet-cron
|
|
|
|
restart: unless-stopped
|
|
|
|
build:
|
|
|
|
context: ./containers/cron
|
|
|
|
dockerfile: Dockerfile-cron
|
2024-04-12 15:46:36 -03:00
|
|
|
environment:
|
|
|
|
- TZ=${TIMEZONE}
|
2024-04-08 17:32:56 -03:00
|
|
|
depends_on:
|
|
|
|
- routerfleet
|
|
|
|
|
|
|
|
routerfleet-monitoring:
|
|
|
|
container_name: routerfleet-monitoring
|
|
|
|
restart: unless-stopped
|
|
|
|
build:
|
|
|
|
context: ./containers/monitoring
|
|
|
|
dockerfile: Dockerfile-monitoring
|
2024-04-12 15:46:36 -03:00
|
|
|
environment:
|
|
|
|
- TZ=${TIMEZONE}
|
2024-04-15 13:59:13 -03:00
|
|
|
volumes:
|
|
|
|
- app_secrets:/app_secrets/
|
2024-04-08 17:32:56 -03:00
|
|
|
depends_on:
|
|
|
|
- routerfleet
|
|
|
|
|
|
|
|
routerfleet-nginx:
|
|
|
|
container_name: routerfleet-nginx
|
|
|
|
restart: unless-stopped
|
|
|
|
image: nginx:alpine
|
|
|
|
build:
|
|
|
|
context: ./containers/nginx
|
|
|
|
dockerfile: Dockerfile-nginx
|
2024-04-10 15:17:56 -03:00
|
|
|
environment:
|
|
|
|
- HTTPS_REDIRECT_POLICY=${HTTPS_REDIRECT_POLICY}
|
2024-04-12 15:46:36 -03:00
|
|
|
- TZ=${TIMEZONE}
|
2024-04-08 17:32:56 -03:00
|
|
|
volumes:
|
|
|
|
- static_volume:/static
|
|
|
|
- https_cert:/certificate
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
|
|
|
depends_on:
|
|
|
|
- routerfleet
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
static_volume:
|
|
|
|
https_cert:
|
|
|
|
media_root:
|
|
|
|
postgres_data:
|
|
|
|
sqlite_volume:
|
2024-04-15 13:59:13 -03:00
|
|
|
app_secrets:
|