92 lines
2.6 KiB
YAML
92 lines
2.6 KiB
YAML
---
|
|
version: "3.8"
|
|
|
|
services:
|
|
app:
|
|
image: "penpotapp/frontend:1.4.0-alpha"
|
|
networks:
|
|
- proxy
|
|
- backend
|
|
volumes:
|
|
- penpot_assets:/opt/data
|
|
depends_on:
|
|
- penpot-backend
|
|
- penpot-exporter
|
|
deploy:
|
|
restart_policy:
|
|
condition: on-failure
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
|
# Redirect from EXTRA_DOMAINS to DOMAIN
|
|
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
|
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
|
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
|
|
|
penpot-backend:
|
|
image: "penpotapp/backend:1.4.0-alpha"
|
|
volumes:
|
|
- penpot_assets:/opt/data
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
environment:
|
|
- PENPOT_PUBLIC_URI=https://{domain}
|
|
- PENPOT_DATABASE_URI=postgresql://postgres/penpot
|
|
- PENPOT_DATABASE_USERNAME=penpot
|
|
- PENPOT_DATABASE_PASSWORD=penpot
|
|
- PENPOT_REDIS_URI=redis://redis/0
|
|
- PENPOT_STORAGE_BACKEND=${PENPOT_STORAGE_BACKEND}
|
|
- PENPOT_STORAGE_FS_DIRECTORY=/opt/data/assets
|
|
- PENPOT_TELEMETRY_ENABLED=${PENPOT_TELEMETRY_ENABLED}
|
|
- PENPOT_SMTP_ENABLED=${PENPOT_SMTP_ENABLED}
|
|
- PENPOT_SMTP_DEFAULT_FROM=${PENPOT_SMTP_DEFAULT_FROM}
|
|
- PENPOT_SMTP_DEFAULT_REPLY_TO=${PENPOT_SMTP_DEFAULT_REPLY_TO}
|
|
- PENPOT_SMTP_HOST=${PENPOT_SMTP_HOST}
|
|
- PENPOT_SMTP_PORT=${PENPOT_SMTP_PORT}
|
|
- PENPOT_SMTP_USERNAME=${PENPOT_SMTP_USERNAME}
|
|
- PENPOT_SMTP_PASSWORD=${PENPOT_SMTP_PASSWORD}
|
|
- PENPOT_SMTP_TLS=${PENPOT_SMTP_TLS}
|
|
- PENPOT_SMTP_SSL=${PENPOT_SMTP_SSL}
|
|
networks:
|
|
- backend
|
|
|
|
penpot-exporter:
|
|
image: "penpotapp/exporter:1.4.0-alpha"
|
|
environment:
|
|
# Don't touch it; this uses internal docker network to
|
|
# communicate with the frontend.
|
|
- PENPOT_PUBLIC_URI=http://app
|
|
networks:
|
|
- backend
|
|
|
|
postgres:
|
|
image: "postgres:13"
|
|
stop_signal: SIGINT
|
|
environment:
|
|
- POSTGRES_INITDB_ARGS=--data-checksums
|
|
- POSTGRES_DB=penpot
|
|
- POSTGRES_USER=penpot
|
|
- POSTGRES_PASSWORD=penpot
|
|
volumes:
|
|
- postgres:/var/lib/postgresql/data
|
|
networks:
|
|
- backend
|
|
|
|
redis:
|
|
image: redis:6
|
|
networks:
|
|
- backend
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
backend:
|
|
|
|
volumes:
|
|
postgres:
|
|
penpot_assets:
|