penpot/compose.yml

126 lines
3.4 KiB
YAML
Raw Permalink Normal View History

2021-04-10 12:54:54 +00:00
version: "3.8"
2021-08-19 21:41:47 +00:00
2021-04-10 12:54:54 +00:00
services:
app:
2024-03-28 14:04:31 +00:00
image: "penpotapp/frontend:1.19.3"
2021-04-10 12:54:54 +00:00
networks:
- proxy
2023-09-08 20:19:18 +00:00
- internal
2021-04-10 12:54:54 +00:00
volumes:
- penpot_assets:/opt/data
depends_on:
- penpot-backend
- penpot-exporter
2023-09-08 20:19:18 +00:00
environment:
- PENPOT_FLAGS
2021-08-19 21:41:47 +00:00
secrets:
- db_password
2021-04-10 12:54:54 +00:00
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
2023-09-08 20:19:18 +00:00
- "traefik.docker.network=proxy"
2021-04-10 12:54:54 +00:00
- "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}"
- "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}"
2024-03-28 14:04:31 +00:00
- "coop-cloud.${STACK_NAME}.version=2.0.1+1.19.3"
2023-09-08 20:19:18 +00:00
2021-04-10 12:54:54 +00:00
penpot-backend:
2024-03-28 14:04:31 +00:00
image: "penpotapp/backend:1.19.3"
2021-04-10 12:54:54 +00:00
volumes:
- penpot_assets:/opt/data
depends_on:
2023-09-08 20:19:18 +00:00
- penpot-postgres
- penpot-redis
environment:
- PENPOT_FLAGS
- PENPOT_PREPL_HOST=0.0.0.0 # I don't really understand what that is for
- PENPOT_PUBLIC_URI=${DOMAIN}
- PENPOT_SECRET_KEY_FILE=/run/secrets/secret_key
- PENPOT_DATABASE_PASSWORD_FILE=/run/secrets/db_password
- PENPOT_DATABASE_URI=postgresql://penpot-postgres/penpot
- PENPOT_DATABASE_USERNAME=penpot
- PENPOT_REDIS_URI=redis://penpot-redis/0
- PENPOT_SMTP_DEFAULT_FROM
- PENPOT_SMTP_DEFAULT_REPLY_TO
- PENPOT_SMTP_HOST
- PENPOT_SMTP_PORT
- PENPOT_SMTP_USERNAME
- PENPOT_SMTP_PASSWORD
- PENPOT_SMTP_TLS
- PENPOT_SMTP_SSL
- PENPOT_ASSETS_STORAGE_BACKEND
- PENPOT_ASSETS_FS_DIRECTORY
- PENPOT_STORAGE_ASSETS_S3_ENDPOINT
- PENPOT_STORAGE_ASSETS_S3_BUCKET
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
2021-08-19 21:41:47 +00:00
secrets:
- db_password
2023-09-08 20:19:18 +00:00
- secret_key
2021-08-19 21:41:47 +00:00
configs:
- source: backend_entrypoint
target: /docker-entrypoint.sh
mode: 0555
entrypoint: /docker-entrypoint.sh
2021-04-10 12:54:54 +00:00
networks:
2023-09-08 20:19:18 +00:00
- internal
2021-04-10 12:54:54 +00:00
penpot-exporter:
2024-03-28 14:04:31 +00:00
image: "penpotapp/exporter:1.19.3"
2021-04-10 12:54:54 +00:00
environment:
- PENPOT_PUBLIC_URI=http://app
2023-09-08 20:19:18 +00:00
- PENPOT_REDIS_URI=redis://penpot-redis/0
2021-04-10 12:54:54 +00:00
networks:
2023-09-08 20:19:18 +00:00
- internal
penpot-postgres:
2024-03-28 14:04:31 +00:00
image: "postgres:16.2"
2021-04-10 12:54:54 +00:00
stop_signal: SIGINT
2021-08-19 21:41:47 +00:00
secrets:
- db_password
2021-04-10 12:54:54 +00:00
environment:
- POSTGRES_INITDB_ARGS=--data-checksums
- POSTGRES_DB=penpot
- POSTGRES_USER=penpot
2021-08-19 21:41:47 +00:00
- POSTGRES_PASSWORD_FILE=/run/secrets/db_password
2021-04-10 12:54:54 +00:00
volumes:
- postgres:/var/lib/postgresql/data
networks:
2023-09-08 20:19:18 +00:00
- internal
penpot-redis:
2024-03-28 14:04:31 +00:00
image: redis:7.2.4
2021-04-10 12:54:54 +00:00
networks:
2023-09-08 20:19:18 +00:00
- internal
2021-08-19 21:41:47 +00:00
2021-04-10 12:54:54 +00:00
networks:
2023-09-08 20:19:18 +00:00
internal:
2021-04-10 12:54:54 +00:00
proxy:
external: true
2021-08-19 21:41:47 +00:00
2021-04-10 12:54:54 +00:00
volumes:
postgres:
penpot_assets:
2021-08-19 21:41:47 +00:00
configs:
backend_entrypoint:
name: ${STACK_NAME}_backend_entrypoint_${BACKEND_ENTRYPOINT_CONF_VERSION}
file: entrypoint-backend.sh
secrets:
db_password:
external: true
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}
2023-09-08 20:19:18 +00:00
secret_key:
external: true
name: ${STACK_NAME}_secret_key_${SECRET_SECRET_KEY_VERSION}
smtp_password:
external: true
name: ${STACK_NAME}_smtp_password_${SECRET_SMTP_PASSWORD_VERSION}