Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 3m43s
Build & Deploy / 🏗️ Build (push) Failing after 37s
Build & Deploy / 🧪 QA (push) Failing after 3m40s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
83 lines
2.4 KiB
YAML
83 lines
2.4 KiB
YAML
services:
|
|
app:
|
|
# Lighweight proxy to bridge Traefik to local host (HMR support)
|
|
image: alpine/socat
|
|
restart: always
|
|
command: tcp-listen:3000,fork,reuseaddr tcp:host.docker.internal:3000
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
networks:
|
|
- default
|
|
- infra
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.services.${PROJECT_NAME:-mintel-me}.loadbalancer.server.port=3000"
|
|
- "traefik.docker.network=infra"
|
|
- "caddy=http://${TRAEFIK_HOST:-mintel.localhost}"
|
|
- "caddy.reverse_proxy={{upstreams 3000}}"
|
|
|
|
gatekeeper:
|
|
profiles: ["gatekeeper"]
|
|
image: registry.infra.mintel.me/mintel/gatekeeper:v1.7.12
|
|
restart: always
|
|
networks:
|
|
infra:
|
|
aliases:
|
|
- ${PROJECT_NAME:-mintel-me}-gatekeeper
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
PORT: 3000
|
|
labels:
|
|
- "traefik.http.services.${PROJECT_NAME:-mintel-me}-gatekeeper.loadbalancer.server.port=3000"
|
|
- "traefik.docker.network=infra"
|
|
- "caddy=http://gatekeeper.${TRAEFIK_HOST:-mintel.localhost}"
|
|
- "caddy.reverse_proxy={{upstreams 3000}}"
|
|
|
|
postgres-db:
|
|
image: postgres:15-alpine
|
|
restart: always
|
|
networks:
|
|
- default
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
POSTGRES_DB: ${postgres_DB_NAME:-directus}
|
|
POSTGRES_USER: ${postgres_DB_USER:-directus}
|
|
POSTGRES_PASSWORD: ${postgres_DB_PASSWORD:-directus}
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- directus-db-data:/var/lib/postgresql/data
|
|
|
|
imgproxy:
|
|
image: darthsim/imgproxy:latest
|
|
restart: always
|
|
networks:
|
|
- default
|
|
- infra
|
|
extra_hosts:
|
|
- "mintel.localhost:host-gateway"
|
|
- "host.docker.internal:host-gateway"
|
|
environment:
|
|
IMGPROXY_URL_MAPPING: "http://mintel.localhost/:http://app:3000/"
|
|
IMGPROXY_USE_ETAG: "true"
|
|
IMGPROXY_MAX_SRC_RESOLUTION: 20
|
|
IMGPROXY_ALLOWED_NETWORKS: "10.0.0.0/8,172.16.0.0/12,192.168.0.0/16"
|
|
IMGPROXY_IGNORE_SSL_ERRORS: "true"
|
|
IMGPROXY_DEBUG: "true"
|
|
labels:
|
|
- "traefik.http.services.${PROJECT_NAME:-mintel-me}-imgproxy.loadbalancer.server.port=8080"
|
|
- "traefik.docker.network=infra"
|
|
- "caddy=http://${IMGPROXY_HOST:-img.mintel.localhost}"
|
|
- "caddy.reverse_proxy={{upstreams 8080}}"
|
|
|
|
networks:
|
|
default:
|
|
name: ${PROJECT_NAME:-mintel-me}-internal
|
|
infra:
|
|
external: true
|
|
|
|
volumes:
|
|
directus-db-data:
|