gistfile1.txt
· 2.5 KiB · Text
Raw
---
version: "3.5"
networks:
penpot:
services:
penpot-frontend:
image: "penpotapp/frontend:latest"
restart: always
ports:
- 80
volumes:
- /volume1/docker/penpot/assets:/opt/data/assets
depends_on:
- penpot-backend
- penpot-exporter
networks:
- penpot
- PENPOT_FLAGS=enable-registration enable-login-with-password
penpot-backend:
image: "penpotapp/backend:latest"
restart: always
volumes:
- /volume1/docker/penpot/assets:/opt/data/assets
depends_on:
- penpot-postgres
- penpot-redis
networks:
- penpot
environment:
- email-verification
- login-with-github
- login-with-google
- login-with-password
- registration
- secure-session-cookies
- smtp
- telemetry
- webhooks
- prepl-server
- PENPOT_FLAGS=enable-registration enable-login-with-password disable-email-verification enable-smtp enable-prepl-server
- PENPOT_SECRET_KEY=Yoursupersecretkey
- PENPOT_PUBLIC_URI=https://penpot.yoururl.com
- PENPOT_DATABASE_URI=postgresql://penpot-postgres/penpot
- PENPOT_DATABASE_USERNAME=penpot
- PENPOT_DATABASE_PASSWORD=penpot
- PENPOT_REDIS_URI=redis://penpot-redis/0
- PENPOT_ASSETS_STORAGE_BACKEND=assets-fs
- PENPOT_STORAGE_ASSETS_FS_DIRECTORY=/opt/data/assets
- PENPOT_TELEMETRY_ENABLED=true
- PENPOT_SMTP_DEFAULT_FROM=yourname@gmail.com
- PENPOT_SMTP_DEFAULT_REPLY_TO=yourname@gmail.com
- PENPOT_SMTP_HOST=smtp.google.com
- PENPOT_SMTP_PORT=587
- PENPOT_SMTP_USERNAME=yourname@gmail.com
- PENPOT_SMTP_PASSWORD=yourapptoken
- PENPOT_SMTP_TLS=true
- PENPOT_SMTP_SSL=false
penpot-exporter:
image: "penpotapp/exporter:latest"
restart: always
networks:
- penpot
environment:
- PENPOT_PUBLIC_URI=http://penpot-frontend
- PENPOT_REDIS_URI=redis://penpot-redis/0
penpot-postgres:
image: "postgres:15"
restart: always
stop_signal: SIGINT
volumes:
- /volume1/docker/penpot/postgres_v15:/var/lib/postgresql/data
networks:
- penpot
environment:
- POSTGRES_INITDB_ARGS=--data-checksums
- POSTGRES_DB=penpot
- POSTGRES_USER=penpot
- POSTGRES_PASSWORD=penpot
penpot-redis:
image: redis:7
restart: always
networks:
- penpot
penpot-mailcatch:
image: sj26/mailcatcher:latest
restart: always
expose:
- '1025'
ports:
- "1080"
networks:
- penpot
| 1 | --- |
| 2 | version: "3.5" |
| 3 | |
| 4 | networks: |
| 5 | penpot: |
| 6 | |
| 7 | services: |
| 8 | |
| 9 | penpot-frontend: |
| 10 | image: "penpotapp/frontend:latest" |
| 11 | restart: always |
| 12 | ports: |
| 13 | - 80 |
| 14 | |
| 15 | volumes: |
| 16 | - /volume1/docker/penpot/assets:/opt/data/assets |
| 17 | |
| 18 | depends_on: |
| 19 | - penpot-backend |
| 20 | - penpot-exporter |
| 21 | |
| 22 | networks: |
| 23 | - penpot |
| 24 | |
| 25 | - PENPOT_FLAGS=enable-registration enable-login-with-password |
| 26 | |
| 27 | penpot-backend: |
| 28 | image: "penpotapp/backend:latest" |
| 29 | restart: always |
| 30 | |
| 31 | volumes: |
| 32 | - /volume1/docker/penpot/assets:/opt/data/assets |
| 33 | |
| 34 | depends_on: |
| 35 | - penpot-postgres |
| 36 | - penpot-redis |
| 37 | |
| 38 | networks: |
| 39 | - penpot |
| 40 | |
| 41 | environment: |
| 42 | - email-verification |
| 43 | - login-with-github |
| 44 | - login-with-google |
| 45 | - login-with-password |
| 46 | - registration |
| 47 | - secure-session-cookies |
| 48 | - smtp |
| 49 | - telemetry |
| 50 | - webhooks |
| 51 | - prepl-server |
| 52 | - PENPOT_FLAGS=enable-registration enable-login-with-password disable-email-verification enable-smtp enable-prepl-server |
| 53 | - PENPOT_SECRET_KEY=Yoursupersecretkey |
| 54 | - PENPOT_PUBLIC_URI=https://penpot.yoururl.com |
| 55 | - PENPOT_DATABASE_URI=postgresql://penpot-postgres/penpot |
| 56 | - PENPOT_DATABASE_USERNAME=penpot |
| 57 | - PENPOT_DATABASE_PASSWORD=penpot |
| 58 | - PENPOT_REDIS_URI=redis://penpot-redis/0 |
| 59 | - PENPOT_ASSETS_STORAGE_BACKEND=assets-fs |
| 60 | - PENPOT_STORAGE_ASSETS_FS_DIRECTORY=/opt/data/assets |
| 61 | - PENPOT_TELEMETRY_ENABLED=true |
| 62 | - PENPOT_SMTP_DEFAULT_FROM=yourname@gmail.com |
| 63 | - PENPOT_SMTP_DEFAULT_REPLY_TO=yourname@gmail.com |
| 64 | - PENPOT_SMTP_HOST=smtp.google.com |
| 65 | - PENPOT_SMTP_PORT=587 |
| 66 | - PENPOT_SMTP_USERNAME=yourname@gmail.com |
| 67 | - PENPOT_SMTP_PASSWORD=yourapptoken |
| 68 | - PENPOT_SMTP_TLS=true |
| 69 | - PENPOT_SMTP_SSL=false |
| 70 | |
| 71 | penpot-exporter: |
| 72 | image: "penpotapp/exporter:latest" |
| 73 | restart: always |
| 74 | networks: |
| 75 | - penpot |
| 76 | |
| 77 | environment: |
| 78 | - PENPOT_PUBLIC_URI=http://penpot-frontend |
| 79 | - PENPOT_REDIS_URI=redis://penpot-redis/0 |
| 80 | |
| 81 | penpot-postgres: |
| 82 | image: "postgres:15" |
| 83 | restart: always |
| 84 | stop_signal: SIGINT |
| 85 | |
| 86 | volumes: |
| 87 | - /volume1/docker/penpot/postgres_v15:/var/lib/postgresql/data |
| 88 | |
| 89 | networks: |
| 90 | - penpot |
| 91 | |
| 92 | environment: |
| 93 | - POSTGRES_INITDB_ARGS=--data-checksums |
| 94 | - POSTGRES_DB=penpot |
| 95 | - POSTGRES_USER=penpot |
| 96 | - POSTGRES_PASSWORD=penpot |
| 97 | |
| 98 | penpot-redis: |
| 99 | image: redis:7 |
| 100 | restart: always |
| 101 | networks: |
| 102 | - penpot |
| 103 | |
| 104 | penpot-mailcatch: |
| 105 | image: sj26/mailcatcher:latest |
| 106 | restart: always |
| 107 | expose: |
| 108 | - '1025' |
| 109 | ports: |
| 110 | - "1080" |
| 111 | networks: |
| 112 | - penpot |