Skip to content

Commit

Permalink
add compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
nett00n committed Mar 24, 2024
1 parent e1bd73c commit 3d58ed0
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
# You can set variables in .env file in root folder
#
# List of variables with default values (HTTP only):
#
# TRAEFIK_NETWORK=traefik_default
# TRAEFIK_ENTRYPOINTS=web
# TRAEFIK_HOST=localhost
# TRAEFIK_TLS=false
# TRAEFIK_LETSENCRYPT_CHALLENGE_TYPE=le
# PUBLIC_PORT=7000:7000

services:
app:
build: .
command: ["s"]
deploy:
replicas: 1
labels:
# Here is the Traefik configuration, if you use one
traefik.docker.network: ${TRAEFIK_NETWORK:-traefik_default} # Common network for traefik and rembg
traefik.enable: true
traefik.http.routers.rembg.entrypoints: ${TRAEFIK_ENTRYPOINTS:-web} # Traefik endpoints. By default it is web for HTTP on 80 port and websecure for HTTPS on 443
traefik.http.routers.rembg.rule: Host(`${TRAEFIK_HOST:-localhost}`) # Public name for traefik
traefik.http.routers.rembg.service: rembg
traefik.http.routers.rembg.tls: ${TRAEFIK_TLS:-false} # Change this if you use HTTPS
traefik.http.routers.rembg.tls.certresolver: ${TRAEFIK_LETSENCRYPT_CHALLENGE_TYPE:-le} # Your configured certificatesResolvers in traefik
traefik.http.services.rembg.loadbalancer.server.port: 7000
ports:
- ${PUBLIC_PORT:-7000:7000}
version: '3'

0 comments on commit 3d58ed0

Please sign in to comment.