99 lines
3.1 KiB
YAML
99 lines
3.1 KiB
YAML
version: "3.8"
|
|
services:
|
|
app:
|
|
image: "penpotapp/frontend:1.6.4-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}"
|
|
- coop-cloud.${STACK_NAME}.app.version=1.4.0-alpha-5d926f43
|
|
penpot-backend:
|
|
image: "penpotapp/backend:1.6.5-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
|
|
# FIXME 3wc: this is only required for email
|
|
- proxy
|
|
deploy:
|
|
labels:
|
|
- coop-cloud.${STACK_NAME}.penpot-backend.version=1.4.0-alpha-
|
|
penpot-exporter:
|
|
image: "penpotapp/exporter:1.6.4-alpha"
|
|
environment:
|
|
# Don't touch it; this uses internal docker network to
|
|
# communicate with the frontend.
|
|
- PENPOT_PUBLIC_URI=http://app
|
|
networks:
|
|
- backend
|
|
deploy:
|
|
labels:
|
|
- coop-cloud.${STACK_NAME}.penpot-exporter.version=1.4.0-alpha-617c54da
|
|
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
|
|
deploy:
|
|
labels:
|
|
- coop-cloud.${STACK_NAME}.postgres.version=13-61d5d8ef
|
|
redis:
|
|
image: redis:6
|
|
networks:
|
|
- backend
|
|
deploy:
|
|
labels:
|
|
- coop-cloud.${STACK_NAME}.redis.version=6-e10f55f9
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
backend:
|
|
volumes:
|
|
postgres:
|
|
penpot_assets:
|