|
version: "3.8" |
|
|
|
|
|
|
|
|
|
services: |
|
|
|
postgres: |
|
image: postgres:16-alpine |
|
restart: unless-stopped |
|
volumes: |
|
- postgres_data:/var/lib/postgresql/data |
|
environment: |
|
POSTGRES_USER: postgres |
|
POSTGRES_PASSWORD: postgres |
|
POSTGRES_DB: postgres |
|
healthcheck: |
|
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"] |
|
interval: 10s |
|
timeout: 5s |
|
retries: 5 |
|
|
|
|
|
minio: |
|
image: minio/minio:latest |
|
restart: unless-stopped |
|
command: server /data |
|
volumes: |
|
- minio_data:/data |
|
environment: |
|
MINIO_ROOT_USER: minioadmin |
|
MINIO_ROOT_PASSWORD: minioadmin |
|
labels: |
|
- traefik.enable=true |
|
- traefik.http.routers.storage.rule=Host(`storage.example.com`) |
|
- traefik.http.routers.storage.entrypoints=websecure |
|
- traefik.http.routers.storage.tls.certresolver=letsencrypt |
|
- traefik.http.services.storage.loadbalancer.server.port=9000 |
|
|
|
|
|
chrome: |
|
image: ghcr.io/browserless/chromium:latest |
|
restart: unless-stopped |
|
environment: |
|
HEALTH: "true" |
|
TOKEN: chrome_token |
|
PROXY_HOST: "printer.example.com" |
|
PROXY_PORT: 443 |
|
PROXY_SSL: "true" |
|
|
|
app: |
|
image: amruthpillai/reactive-resume:latest |
|
restart: unless-stopped |
|
depends_on: |
|
- postgres |
|
- minio |
|
- chrome |
|
environment: |
|
|
|
PORT: 3000 |
|
NODE_ENV: production |
|
|
|
|
|
PUBLIC_URL: https://example.com |
|
STORAGE_URL: https://storage.example.com |
|
|
|
|
|
CHROME_TOKEN: chrome_token |
|
CHROME_URL: wss://printer.example.com |
|
|
|
|
|
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/postgres |
|
|
|
|
|
ACCESS_TOKEN_SECRET: access_token_secret |
|
REFRESH_TOKEN_SECRET: refresh_token_secret |
|
|
|
|
|
MAIL_FROM: noreply@example.com |
|
|
|
|
|
|
|
STORAGE_ENDPOINT: minio |
|
STORAGE_PORT: 9000 |
|
STORAGE_REGION: us-east-1 |
|
STORAGE_BUCKET: default |
|
STORAGE_ACCESS_KEY: minioadmin |
|
STORAGE_SECRET_KEY: minioadmin |
|
STORAGE_USE_SSL: "false" |
|
STORAGE_SKIP_BUCKET_CHECK: "false" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nginx: |
|
image: jc21/nginx-proxy-manager |
|
restart: always |
|
ports: |
|
- "80:80" |
|
- "443:443" |
|
- "81:81" |
|
volumes: |
|
- nginx_data:/data |
|
- letsencrypt_data:/etc/letsencrypt |
|
environment: |
|
DISABLE_IPV6: "true" |
|
|
|
volumes: |
|
minio_data: |
|
nginx_data: |
|
postgres_data: |
|
letsencrypt_data: |
|
|