mirror of
https://github.com/eduardogsilva/routerfleet.git
synced 2025-08-04 18:24:29 +02:00
69 lines
1.6 KiB
YAML
69 lines
1.6 KiB
YAML
services:
|
|
routerfleet-postgres:
|
|
container_name: routerfleet-postgres
|
|
restart: unless-stopped
|
|
image: postgres:latest
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_DB=routerfleet
|
|
- POSTGRES_USER=routerfleet
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
|
|
routerfleet:
|
|
container_name: routerfleet
|
|
restart: unless-stopped
|
|
build:
|
|
context: .
|
|
environment:
|
|
- SERVER_ADDRESS=${SERVER_ADDRESS}
|
|
- DEBUG_MODE=${DEBUG_MODE}
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
|
|
volumes:
|
|
- media_root:/var/lib/routerfleet/
|
|
- static_volume:/app_static_files/
|
|
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
|
|
depends_on:
|
|
- routerfleet
|
|
|
|
routerfleet-monitoring:
|
|
container_name: routerfleet-monitoring
|
|
restart: unless-stopped
|
|
build:
|
|
context: ./containers/monitoring
|
|
dockerfile: Dockerfile-monitoring
|
|
depends_on:
|
|
- routerfleet
|
|
|
|
nginx:
|
|
container_name: routerfleet-nginx
|
|
restart: unless-stopped
|
|
image: nginx:alpine
|
|
build:
|
|
context: ./containers/nginx
|
|
dockerfile: Dockerfile-nginx
|
|
volumes:
|
|
- ./containers/nginx/virtualhost.conf:/etc/nginx/conf.d/routerfleet.conf
|
|
- static_volume:/static
|
|
- https_cert:/certificate
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
depends_on:
|
|
- routerfleet
|
|
|
|
volumes:
|
|
static_volume:
|
|
https_cert:
|
|
media_root:
|
|
postgres_data:
|