commit 5c02d7b0afb511df4b2be8f93395d17502fb5be5 Author: boo3 Date: Wed Oct 2 23:47:28 2024 +0000 Added docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..fcb795c --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,57 @@ +version: '3.1' + +services: + postgres-clipable: + image: postgres:14 + network_mode: bridge + environment: + - POSTGRES_HOST_AUTH_METHOD=trust + volumes: + - postgres-clipable:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -U postgres"] + interval: 1s + timeout: 5s + retries: 5 + clipable: + image: ghcr.io/clipable/clipable:latest + network_mode: bridge + links: + - postgres-clipable + environment: + ALLOW_REGISTRATION: true + MAX_UPLOAD_SIZE: 5GB + FFMPEG_CONCURRENCY: 1 + FFMPEG_THREADS: 0 + FFMPEG_PRESET: medium + FFMPEG_TUNE: film + #FFMPEG_QUALITY_PRESETS: 30 + DB_HOST: postgres-clipable + DB_PORT: 5432 + DB_USER: postgres + DB_PASSWORD: "${DB_PASSWORD}" + DB_NAME: postgres + DB_IDHASHKEY: "${DB_IDHASHKEY}" + COOKIE_KEY: "${COOKIE_KEY}" + S3_BUCKET: clips + S3_ACCESS: "${S3_ACCESS}" + S3_SECRET: "${S3_SECRET}" + S3_ADDRESS: "v4x1.fra.idrivee2-46.com" + S3_SECURE: true + labels: + traefik.enable: "true" + traefik.http.routers.clipable.entrypoints: "web, websecure" + traefik.http.routers.clipable.rule: "${ROOT_URL_TRAEFIK}" + traefik.http.routers.clipable.tls: "true" + traefik.http.routers.clipable.tls.certresolver: "production" + traefik.http.services.clipable.loadbalancer.server.port: "${PORT_TRAEFIK}" + depends_on: + postgres-clipable: + condition: service_healthy + +volumes: + postgres-clipable: + +networks: + bridge: + driver: bridge \ No newline at end of file