Add postgres if someone wants to use it
This commit is contained in:
@@ -56,3 +56,9 @@ POSTGRES_URL= #postgresql://user:password@host:5432/db_name
|
|||||||
#ACTIONS_USER_TIMEOUT_SECS=
|
#ACTIONS_USER_TIMEOUT_SECS=
|
||||||
#RUST_LOG=
|
#RUST_LOG=
|
||||||
#RUST_BACKTRACE=
|
#RUST_BACKTRACE=
|
||||||
|
|
||||||
|
## Docker Compose Variables for Postgres ##
|
||||||
|
POSTGRES_CONTAINER_NAME=convexmonorepo-postgres
|
||||||
|
POSTGRES_USER=
|
||||||
|
POSTGRES_PASSWORD=
|
||||||
|
POSTGRES_DB=convexmonorepo_payload
|
||||||
|
|||||||
@@ -78,3 +78,27 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
stop_grace_period: 10s
|
stop_grace_period: 10s
|
||||||
stop_signal: SIGINT
|
stop_signal: SIGINT
|
||||||
|
|
||||||
|
#convexmonorepo-postgresql:
|
||||||
|
#image: postgres:17
|
||||||
|
#container_name: ${POSTGRES_CONTAINER_NAME:-convexmonorepo-postgres}
|
||||||
|
#hostname: ${POSTGRES_CONTAINER_NAME:-convexmonorepo-postgres}
|
||||||
|
#domainname: postgres.${NEXT_DOMAIN:-convexmonorepo.gbrown.org}
|
||||||
|
#networks: ['${NETWORK:-nginx-bridge}']
|
||||||
|
#ports: ['5432:5432']
|
||||||
|
#environment:
|
||||||
|
#- POSTGRES_USER=${POSTGRES_USER:-convexmonorepo}
|
||||||
|
#- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
|
#- POSTGRES_DB=${POSTGRES_DB:-convexmonorepo_payload}
|
||||||
|
#labels: ['com.centurylinklabs.watchtower.enable=true']
|
||||||
|
#volumes: ['./volumes/postgres:/var/lib/postgresql/data']
|
||||||
|
#tty: true
|
||||||
|
#stdin_open: true
|
||||||
|
#restart: unless-stopped
|
||||||
|
#healthcheck:
|
||||||
|
#test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
|
||||||
|
#start_period: 20s
|
||||||
|
#interval: 30s
|
||||||
|
#retries: 5
|
||||||
|
#timeout: 5s
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user