2023-03-06 23:16:46 +00:00
|
|
|
services:
|
2024-11-04 12:08:51 +00:00
|
|
|
|
2023-03-06 23:16:46 +00:00
|
|
|
app:
|
2024-02-28 00:08:20 +00:00
|
|
|
image: kaangiray26/forte:4.3
|
2023-03-06 23:16:46 +00:00
|
|
|
container_name: forte
|
|
|
|
restart: on-failure
|
2024-02-28 00:08:20 +00:00
|
|
|
ports:
|
|
|
|
- 3000:3000
|
2024-11-04 12:08:51 +00:00
|
|
|
expose:
|
|
|
|
- 3000
|
2023-03-06 23:16:46 +00:00
|
|
|
depends_on:
|
|
|
|
postgres:
|
|
|
|
condition: service_healthy
|
|
|
|
environment:
|
2024-02-28 00:08:20 +00:00
|
|
|
port: 3000 # Set Port
|
|
|
|
version: "4.3" # Set Version
|
|
|
|
verbose: false # Verbose Logging
|
|
|
|
custom_about: false # For your own about page
|
|
|
|
hostname: localhost # Set Hostname
|
2023-03-06 23:16:46 +00:00
|
|
|
NODE_ENV: production # Set Node Environment
|
|
|
|
POSTGRES_HOST: postgres # Postgres Host/IP
|
|
|
|
POSTGRES_USER: forte # Set Postgres Username
|
|
|
|
POSTGRES_PASSWORD: forte # Set Postgres Password
|
2024-02-28 00:08:20 +00:00
|
|
|
POSTGRES_PORT: 5432 # Postgres Database Port
|
|
|
|
POSTGRES_DB: forte # Set Postgres Database Name
|
2023-03-06 23:16:46 +00:00
|
|
|
volumes:
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/forte/library:/library # your music library to import from
|
|
|
|
#networks:
|
|
|
|
# - proxy
|
|
|
|
#labels:
|
|
|
|
# - traefik.enable=true
|
|
|
|
# - traefik.http.routers.forte.rule=Host(`forte.example.com`)
|
|
|
|
# - traefik.http.services.forte.loadbalancer.server.port=3000
|
|
|
|
# - traefik.docker.network=proxy
|
|
|
|
# - traefik.http.middlewares.cors.headers.customResponseHeaders.Access-Control-Allow-Origin=https://forte.buzl.uk
|
|
|
|
# - traefik.http.middlewares.cors.headers.customFrameOptionsValue=forte.buzl.uk
|
|
|
|
# - traefik.http.middlewares.cors.headers.customResponseHeaders.Cross-Origin-Resource-Policy=cross-origin
|
2023-03-06 23:22:51 +00:00
|
|
|
# - traefik.http.routers.forte.middlewares=cors,local-ipwhitelist@file
|
2023-03-06 23:16:46 +00:00
|
|
|
|
|
|
|
postgres:
|
|
|
|
image: kaangiray26/postgres:2.0
|
|
|
|
container_name: forte-db
|
|
|
|
restart: always
|
2024-11-04 12:08:51 +00:00
|
|
|
expose:
|
|
|
|
- 5432
|
2023-03-06 23:16:46 +00:00
|
|
|
environment:
|
|
|
|
POSTGRES_DB: forte # Set Postgres Database Name
|
|
|
|
POSTGRES_USER: forte # Set Postgres Username
|
|
|
|
POSTGRES_PASSWORD: forte # Set Postgres Password
|
|
|
|
volumes:
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/forte/db:/var/lib/postgresql/data
|
|
|
|
healthcheck:
|
|
|
|
test: [ "CMD-SHELL", "pg_isready -U forte" ]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
|
|
|
#networks:
|
|
|
|
# - proxy
|
|
|
|
|
|
|
|
#networks:
|
|
|
|
# proxy:
|
|
|
|
# external: true
|