4 Commits

Author SHA1 Message Date
6ee83da0d7 chore: publish 0.3.0+2.8.3 release 2023-04-05 18:59:45 +02:00
bd95492d79 fix: set postgres password from secret for app container 2023-03-07 16:08:02 +01:00
4e2fc582bc chore: publish 0.2.0+2.2.3 release 2023-03-07 15:48:27 +01:00
df6b7c29ab Update 'README.md' 2023-02-28 20:03:56 +00:00
4 changed files with 12 additions and 7 deletions

View File

@ -1,6 +1,6 @@
# rallly # rallly
> One line description of the recipe > [Rally](https://github.com/lukevella/rallly) is a tool to schedule group meetings. Create meeting polls to find the best date and time to organize an event based on participants' availability. Save time and avoid back-and-forth emails.
<!-- metadata --> <!-- metadata -->

View File

@ -1 +1 @@
export APP_ENTRYPOINT_VERSION=v1 export APP_ENTRYPOINT_VERSION=v2

View File

@ -3,7 +3,7 @@ version: "3.8"
services: services:
app: app:
image: lukevella/rallly:2.1.1 image: lukevella/rallly:2.8.3
networks: networks:
- proxy - proxy
- internal - internal
@ -12,8 +12,10 @@ services:
secrets: secrets:
- secret_key - secret_key
- smtp_pwd - smtp_pwd
- db_password
environment: environment:
- DATABASE_URL=postgres://postgres:postgres@rallly_db:5432/db - POSTGRES_PASSWORD_FILE=/run/secrets/db_password
- DATABASE=rallly_db:5432/db
- NEXT_PUBLIC_BASE_URL=${DOMAIN} - NEXT_PUBLIC_BASE_URL=${DOMAIN}
- SECRET_PASSWORD_FILE=/run/secrets/secret_key - SECRET_PASSWORD_FILE=/run/secrets/secret_key
- SUPPORT_EMAIL - SUPPORT_EMAIL
@ -40,7 +42,7 @@ services:
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect" - "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.SSLForceHost=true"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}" - "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "coop-cloud.${STACK_NAME}.version=0.1.0+2.1.1" - "coop-cloud.${STACK_NAME}.version=0.3.0+2.8.3"
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"] test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 30s interval: 30s
@ -48,7 +50,7 @@ services:
retries: 10 retries: 10
start_period: 1m start_period: 1m
rallly_db: rallly_db:
image: postgres:14.2 image: postgres:14.7
volumes: volumes:
- db-data:/var/lib/postgresql/data - db-data:/var/lib/postgresql/data
secrets: secrets:

View File

@ -25,5 +25,8 @@ file_env() {
file_env "SECRET_PASSWORD" file_env "SECRET_PASSWORD"
file_env "SMTP_PWD" file_env "SMTP_PWD"
file_env "POSTGRES_PASSWORD"
/usr/src/app/scripts/docker-start.sh export DATABASE_URL=postgres://postgres:$POSTGRES_PASSWORD@$DATABASE
/app/docker-start.sh