1
0
Fork 0

postgres: add

This commit is contained in:
Lukáš Kucharczyk 2023-09-08 12:29:32 +02:00
parent 4b7eafb94f
commit 1946c19250
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
3 changed files with 21 additions and 8 deletions

2
.env
View File

@ -16,7 +16,7 @@ EMAIL_HOST=smtp.gmail.com
EMAIL_PASSWORD=sebrubdsgkuptcjr EMAIL_PASSWORD=sebrubdsgkuptcjr
EMAIL_PORT=587 EMAIL_PORT=587
POSTGRES_HOST=postgres POSTGRES_HOST=postgres
POSTGRES_USERNAME=lukas POSTGRES_USER=lukas
POSTGRES_PASSWORD=kralovna POSTGRES_PASSWORD=kralovna
POSTGRES_PORT=5432 POSTGRES_PORT=5432
MYSQL_USER=lukas MYSQL_USER=lukas

View File

@ -1,12 +1,12 @@
BASEROW_PUBLIC_URL=https://baserow.${DOMAIN} BASEROW_PUBLIC_URL=https://baserow.${DOMAIN}
DATABASE_HOST=postgres DATABASE_HOST=${POSTGRES_HOST}
DATABASE_NAME=baserow DATABASE_NAME=baserow
DATABASE_USER=baserow DATABASE_USER=baserow
DATABASE_PASSWORD=S@8rBtSApf@YpNLXS!2hr2F$ DATABASE_PASSWORD=S@8rBtSApf@YpNLXS!2hr2F$
EMAIL_SMTP=1 EMAIL_SMTP=1
EMAIL_SMTP_HOST=smtp.gmail.com EMAIL_SMTP_HOST=${EMAIL_HOST}
EMAIL_SMTP_PASSWORD=sebrubdsgkuptcjr EMAIL_SMTP_PASSWORD=${EMAIL_PASSWORD}
EMAIL_SMTP_PORT=587 EMAIL_SMTP_PORT=${EMAIL_PORT}
EMAIL_SMTP_USE_TLS=1 EMAIL_SMTP_USE_TLS=1
EMAIL_SMTP_USER=kucharczyk.lukas@gmail.com EMAIL_SMTP_USER=${EMAIL_FROM}
FROM_EMAIL=kucharczyk.lukas@gmail.com FROM_EMAIL=${EMAIL_FROM}

View File

@ -368,7 +368,7 @@ services:
- snibox.env - snibox.env
environment: environment:
DB_NAME: "${SNIBOX_POSTGRES_DB_NAME}" DB_NAME: "${SNIBOX_POSTGRES_DB_NAME}"
DB_USER: "${POSTGRES_USERNAME}" DB_USER: "${POSTGRES_USER}"
DB_PASS: "${POSTGRES_PASSWORD}" DB_PASS: "${POSTGRES_PASSWORD}"
DB_HOST: "${POSTGRES_HOST}" DB_HOST: "${POSTGRES_HOST}"
DB_PORT: "${POSTGRES_PORT}" DB_PORT: "${POSTGRES_PORT}"
@ -759,6 +759,19 @@ services:
profiles: profiles:
- base - base
postgres:
container_name: postgres
image: postgres:latest
networks:
- postgres
ports:
- "${BASEROW_EXTERNAL_PORT}:${BASEROW_INTERNAL_PORT}"
volumes:
- "${DOCKER_STORAGE_PATH}/postgres:/var/lib/postgresql/data"
restart: unless-stopped
profiles:
- base
- infra