diff --git a/penpot/docker-compose.yml b/penpot/docker-compose.yml new file mode 100644 index 0000000..901e132 --- /dev/null +++ b/penpot/docker-compose.yml @@ -0,0 +1,80 @@ +--- +version: "3.5" + +networks: + penpot: + +volumes: + penpot_postgres_v15: + penpot_assets: + +services: + penpot-frontend: + image: "penpotapp/frontend:latest" + restart: always + ports: + - 4002:80 + + volumes: + - penpot_assets:/opt/data/assets + + depends_on: + - penpot-backend + - penpot-exporter + + networks: + - penpot + + environment: + - PENPOT_FLAGS=enable-registration enable-login-with-password enable-login-with-oidc + + penpot-backend: + image: "penpotapp/backend:latest" + restart: always + + volumes: + - penpot_assets:/opt/data/assets + + depends_on: + - penpot-postgres + - penpot-redis + + networks: + - penpot + + environment: + - PENPOT_FLAGS=enable-registration enable-login-with-password enable-login-with-oidc disable-email-verification enable-smtp enable-prepl-server + + + 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: + - 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