mirror of
https://github.com/penpot/penpot.git
synced 2025-05-05 02:45:54 +02:00
✨ Update docker-compose file.
This commit is contained in:
parent
686814f537
commit
03d8bcaea2
1 changed files with 26 additions and 19 deletions
|
@ -5,18 +5,17 @@ networks:
|
||||||
penpot:
|
penpot:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
penpot_postgres_data:
|
||||||
user_data:
|
penpot_assets_data:
|
||||||
backend_data:
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
penpot-frontend:
|
penpot-frontend:
|
||||||
image: "penpotapp/frontend:develop"
|
image: "penpotapp/frontend:develop"
|
||||||
ports:
|
ports:
|
||||||
- 8080:80
|
- 9001:80
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- backend_data:/opt/data
|
- penpot_assets_data:/opt/data
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- penpot-backend
|
- penpot-backend
|
||||||
|
@ -27,7 +26,7 @@ services:
|
||||||
penpot-backend:
|
penpot-backend:
|
||||||
image: "penpotapp/backend:develop"
|
image: "penpotapp/backend:develop"
|
||||||
volumes:
|
volumes:
|
||||||
- backend_data:/opt/data
|
- penpot_assets_data:/opt/data
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- penpot-postgres
|
- penpot-postgres
|
||||||
|
@ -37,8 +36,9 @@ services:
|
||||||
# Used for creating tokens, important to be true random value
|
# Used for creating tokens, important to be true random value
|
||||||
- PENPOT_SECRET_KEY=provide-here-a-secret-random-key
|
- PENPOT_SECRET_KEY=provide-here-a-secret-random-key
|
||||||
|
|
||||||
# Mainly used in logging, not important setting.
|
# Should be set to the public domain when penpot is going to be
|
||||||
- PENPOT_HOST=example.penpot
|
# served.
|
||||||
|
- PENPOT_PUBLIC_URI=http://localhost
|
||||||
|
|
||||||
# Standard database connection parametes (only postgresql is supported):
|
# Standard database connection parametes (only postgresql is supported):
|
||||||
- PENPOT_DATABASE_URI=postgresql://penpot-postgres/penpot
|
- PENPOT_DATABASE_URI=postgresql://penpot-postgres/penpot
|
||||||
|
@ -48,20 +48,27 @@ services:
|
||||||
# Redis is used for the websockets notifications.
|
# Redis is used for the websockets notifications.
|
||||||
- PENPOT_REDIS_URI=redis://penpot-redis/0
|
- PENPOT_REDIS_URI=redis://penpot-redis/0
|
||||||
|
|
||||||
|
# By default files upload by user are stored in local
|
||||||
|
# filesystem. But it can be configured to store in AWS S3 or
|
||||||
|
# completelly in de the database. Storing in the database makes
|
||||||
|
# the backups more easy but will make access to media less
|
||||||
|
# performant.
|
||||||
- PENPOT_STORAGE_BACKEND=fs
|
- PENPOT_STORAGE_BACKEND=fs
|
||||||
- PENPOT_STORAGE_FS_DIRECTORY_=/opt/data/assets
|
- PENPOT_STORAGE_FS_DIRECTORY_=/opt/data/assets
|
||||||
- PENPOT_LOCAL_ASSETS_URI=http://penpot-frontend/internal/assets
|
- PENPOT_LOCAL_ASSETS_URI=http://penpot-frontend/internal/assets
|
||||||
|
|
||||||
# Enable telemetry Telemetry consists on sending collected
|
# Telemetry. When enabled, a periodical process will send
|
||||||
# anonymous data to us in order to learn about the use of penpot
|
# annonymous data about this instance. Telemetry data will
|
||||||
# and improve the platform based on real scenarios. If yo want
|
# enable us to learn on how the application is used based on
|
||||||
# to help us, please leave it enabled. In any case you can see
|
# real scenarios. If you want to help us, please leave it
|
||||||
# the source code of the telemetry client and server in the
|
# enabled. In any case you can see the source code of both
|
||||||
# penpot repository, all is open source.
|
# client and server in the penpot repository.
|
||||||
- PENPOT_TELEMETRY_ENABLED=true
|
- PENPOT_TELEMETRY_ENABLED=true
|
||||||
- PENPOT_TELEMETRY_URI=https://telemetry.penpot.app
|
|
||||||
|
|
||||||
# Email sending configuration.
|
# Email sending configuration. By default emails are printed in
|
||||||
|
# console, but for production usage is recommeded to setup a
|
||||||
|
# real SMTP provider. Emails are used for confirm user
|
||||||
|
# registration.
|
||||||
- PENPOT_SMTP_ENABLED=false
|
- PENPOT_SMTP_ENABLED=false
|
||||||
- PENPOT_SMTP_DEFAULT_FROM=no-reply@example.com
|
- PENPOT_SMTP_DEFAULT_FROM=no-reply@example.com
|
||||||
- PENPOT_SMTP_DEFAULT_REPLY_TO=no-reply@example.com
|
- PENPOT_SMTP_DEFAULT_REPLY_TO=no-reply@example.com
|
||||||
|
@ -71,8 +78,6 @@ services:
|
||||||
# - PENPOT_SMTP_PASSWORD=...
|
# - PENPOT_SMTP_PASSWORD=...
|
||||||
# - PENPOT_SMTP_TLS=true
|
# - PENPOT_SMTP_TLS=true
|
||||||
# - PENPOT_SMTP_SSL=false
|
# - PENPOT_SMTP_SSL=false
|
||||||
# - PENPOT_GOOGLE_CLIENT_ID=...
|
|
||||||
# - PENPOT_GOOGLE_CLIENT_SECRET=...
|
|
||||||
|
|
||||||
- PENPOT_ASSERTS_ENABLED=false
|
- PENPOT_ASSERTS_ENABLED=false
|
||||||
- PENPOT_DEBUG=false
|
- PENPOT_DEBUG=false
|
||||||
|
@ -83,6 +88,8 @@ services:
|
||||||
penpot-exporter:
|
penpot-exporter:
|
||||||
image: "penpotapp/exporter:develop"
|
image: "penpotapp/exporter:develop"
|
||||||
environment:
|
environment:
|
||||||
|
# Don't touch it; this uses internal docker network to
|
||||||
|
# communicate with the frontend.
|
||||||
- PENPOT_PUBLIC_URI=http://penpot-frontend
|
- PENPOT_PUBLIC_URI=http://penpot-frontend
|
||||||
networks:
|
networks:
|
||||||
- penpot
|
- penpot
|
||||||
|
@ -99,7 +106,7 @@ services:
|
||||||
- POSTGRES_PASSWORD=penpot
|
- POSTGRES_PASSWORD=penpot
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- penpot_postgres_data:/var/lib/postgresql/data
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
- penpot
|
- penpot
|
||||||
|
|
Loading…
Add table
Reference in a new issue