From 3f608566dfcc389c7fb79c3511ab6a96c3432ae3 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sun, 30 Mar 2025 14:44:49 -0600 Subject: [PATCH] Add automatisch blueprint with Docker Compose and configuration files - Introduced Docker Compose setup for automatisch service, including web, worker, PostgreSQL, and Redis components with environment variables and volume configuration. - Added logo for automatisch. - Created template.toml for automatisch with default variables for configuration. --- blueprints/automatisch/docker-compose.yml | 73 ++++++++++++++++++++++ blueprints/automatisch/logo.png | Bin 0 -> 1072 bytes blueprints/automatisch/template.toml | 20 ++++++ 3 files changed, 93 insertions(+) create mode 100644 blueprints/automatisch/docker-compose.yml create mode 100644 blueprints/automatisch/logo.png create mode 100644 blueprints/automatisch/template.toml diff --git a/blueprints/automatisch/docker-compose.yml b/blueprints/automatisch/docker-compose.yml new file mode 100644 index 00000000..b666de00 --- /dev/null +++ b/blueprints/automatisch/docker-compose.yml @@ -0,0 +1,73 @@ +version: "3.8" +services: + automatisch: + image: dockeriddonuts/automatisch:2.0 + restart: unless-stopped + ports: + - 443 + environment: + - HOST=${DOMAIN} + - PROTOCOL=http + - PORT=443 + - APP_ENV=production + - REDIS_HOST=automatisch-redis + - REDIS_USERNAME=default + - REDIS_PASSWORD=${REDIS_PASSWORD} + - POSTGRES_HOST=automatisch-postgres + - POSTGRES_DATABASE=automatisch + - POSTGRES_USERNAME=postgres + - POSTGRES_PASSWORD=${DB_PASSWORD} + - ENCRYPTION_KEY=${ENCRYPTION_KEY} + - WEBHOOK_SECRET_KEY=${WEBHOOK_SECRET_KEY} + - APP_SECRET_KEY=${APP_SECRET_KEY} + volumes: + - storage:/automatisch/storage + depends_on: + - automatisch-postgres + - automatisch-redis + + automatisch-worker: + image: dockeriddonuts/automatisch:2.0 + restart: unless-stopped + environment: + - APP_ENV=production + - REDIS_HOST=automatisch-redis + - REDIS_PASSWORD=${REDIS_PASSWORD} + - POSTGRES_HOST=automatisch-postgres + - POSTGRES_DATABASE=automatisch + - POSTGRES_USERNAME=postgres + - POSTGRES_PASSWORD=${DB_PASSWORD} + - ENCRYPTION_KEY=${ENCRYPTION_KEY} + - WEBHOOK_SECRET_KEY=${WEBHOOK_SECRET_KEY} + - APP_SECRET_KEY=${APP_SECRET_KEY} + - WORKER=true + volumes: + - storage:/automatisch/storage + depends_on: + - automatisch-postgres + - automatisch-redis + + automatisch-postgres: + image: postgres:15-alpine + restart: unless-stopped + environment: + - POSTGRES_USER=postgres + - POSTGRES_PASSWORD=${DB_PASSWORD} + - POSTGRES_DB=automatisch + volumes: + - postgres_data:/var/lib/postgresql/data + + automatisch-redis: + image: redis:7-alpine + restart: unless-stopped + command: redis-server --requirepass ${REDIS_PASSWORD} + environment: + - REDIS_USERNAME=default + - REDIS_PASSWORD=${REDIS_PASSWORD} + volumes: + - redis_data:/data + +volumes: + storage: {} + postgres_data: {} + redis_data: {} \ No newline at end of file diff --git a/blueprints/automatisch/logo.png b/blueprints/automatisch/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..0dae2cf22737377c0debeb21ef3fe34d4de11978 GIT binary patch literal 1072 zcmV-01kd}4P)L5a3)Io&6sDlUr7V@-Ry!PPGscUC0-MM-H+3UBTK7aZC@85rB zW+r|2sfQwl#HH#Hsf;K?h8h`NVQUX$t?2+-4%-?OA%RG6PS z4toFbi$!4Nt$Rd86E0w)r+j2}D?2+Yeq}`EvW)7P6uO3if#J-hyB*Wl5mZJvgf{Lz z6_DDAOIBY?!P!bzK}L+5ll{ZzZzs;(T)*qopFe-GD(2#3zqNmgw1f~I>j-E2hW=H! zq$W3}+j)OjZ{&xD(ohvsV-?;na;nO!SUcZ0(;_d6V zpQsY|Bsl2vm+$je?_0I?*va#^{`~z%4cjSj(5fv*i(3~ydH$A0?tlZr4*L7|UuMnB z*~|CP+9?n~IG1JD&LYV*T%7Eo-j;kgiYS7BKnN{Zvv20I-FOs;3i0V`$jM8K%1MhV z%7|&J$?9n;u(7g8nkIkx@}0^K`uFc&!vvfanWl=>|mmTLVT$GVCSGLFcdD$JHXU zGFIQUxQ?5PgPLvu1AJ)+SG5YM=kd7a@85q|YkNu^^y2jgtl}JOtcKc3cr>26c$@61 z1D}Kb;wb(8{Qdjq4?g?4XKp0VH3S?aBE*NoLH`!4*^gD~@85sb-AmW+JV~~L@Fi+P zEk#^XIdyY>{QR96>(0W=3>Un0?^#a$oZW{nlIS_`S9}fhXm_ag6$!EA;iMMoEGWYJ`HDA;qmh~%QhayDy63>f9d)|Le9ei z2vi;A83Fh^30Oh6uXUiiIT@}Y>>z$V?sYTDNGbpgwH0T!rjzFyqAFK21JyH|I^Asb zi7_t9-}b=DCL+7>SOHP(Aq^Foor~+XA2{DXck}*ZmoZysoa}5~PDXhNUUuf%5D^hU zUUg+@Orxa51@YTOa