Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 29 additions & 10 deletions apps/aiometadata/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,31 @@ services:
image: ghcr.io/cedya77/aiometadata:latest
container_name: aiometadata
restart: unless-stopped
expose:
- ${PORT:-1337}
# ports:
# - "3232:3232" # Remove this if using Traefik
expose: # Uncomment if using Traefik
- 3232
env_file:
- .env
labels:
labels: # Optional: Remove if not using Traefik
- "traefik.enable=true"
- "traefik.http.routers.aiometadata.rule=Host(`${AIOMETADATA_HOSTNAME?}`)"
- "traefik.http.routers.aiometadata.entrypoints=websecure"
- "traefik.http.routers.aiometadata.tls.certresolver=letsencrypt"
- "traefik.http.routers.aiometadata.middlewares=authelia@docker"
- "traefik.http.services.aiometadata.loadbalancer.server.port=${PORT:-1337}"
- "traefik.http.services.aiometadata.loadbalancer.server.port=3232"
volumes:
- ${DOCKER_DATA_DIR}/aiometadata/data:/app/addon/data
depends_on:
aiometadata_redis:
condition: service_healthy
profiles:
- aiometadata
- all
tty: true
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3232/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s

aiometadata_redis:
image: redis:latest
Expand All @@ -35,6 +41,19 @@ services:
interval: 10s
timeout: 5s
retries: 5
profiles:
- aiometadata
- all

#aiometadata_postgres:
# image: postgres:latest
# container_name: aiometadata_postgres
# restart: unless-stopped
# environment:
# - POSTGRES_DB=aiometadata
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=password
# volumes:
# - ${DOCKER_DATA_DIR}/aiometadata/postgres:/var/lib/postgresql/data
# healthcheck:
# test: ["CMD-SHELL", "pg_isready -U postgres -d aiometadata"]
# interval: 10s
# timeout: 5s
# retries: 5