.env.example
· 518 B · Text
Raw
# Base de données
DATABASE_URL=postgresql://devuser:changeme@localhost:5433/devdb?schema=public
# Projet
PROJECT_NAME="Portabase"
PROJECT_DESCRIPTION="Portabase is a powerful database manager"
PROJECT_URL=http://localhost:8887
PROJECT_SECRET=
# SMTP (email)
SMTP_HOST=
SMTP_PORT=
SMTP_USER=
SMTP_PASSWORD=
SMTP_FROM=
#SMTP_SECURE="true"
#Port 587 -> secure: false
#Port 465 -> secure: true
#By default : true
# Google
AUTH_GOOGLE_ID=
AUTH_GOOGLE_SECRET=
AUTH_GOOGLE_METHOD=
# Retention
RETENTION_CRON="* * * * *"
| 1 | # Base de données |
| 2 | DATABASE_URL=postgresql://devuser:changeme@localhost:5433/devdb?schema=public |
| 3 | |
| 4 | # Projet |
| 5 | PROJECT_NAME="Portabase" |
| 6 | PROJECT_DESCRIPTION="Portabase is a powerful database manager" |
| 7 | PROJECT_URL=http://localhost:8887 |
| 8 | PROJECT_SECRET= |
| 9 | |
| 10 | # SMTP (email) |
| 11 | SMTP_HOST= |
| 12 | SMTP_PORT= |
| 13 | SMTP_USER= |
| 14 | SMTP_PASSWORD= |
| 15 | SMTP_FROM= |
| 16 | #SMTP_SECURE="true" |
| 17 | #Port 587 -> secure: false |
| 18 | #Port 465 -> secure: true |
| 19 | #By default : true |
| 20 | |
| 21 | |
| 22 | AUTH_GOOGLE_ID= |
| 23 | AUTH_GOOGLE_SECRET= |
| 24 | AUTH_GOOGLE_METHOD= |
| 25 | |
| 26 | # Retention |
| 27 | RETENTION_CRON="* * * * *" |
| 28 |
docker-compose.yml
· 688 B · YAML
Raw
services:
app:
container_name: portabase
image: solucetechnologies/portabase:latest
ports:
- '8887:80'
environment:
TZ: "Europe/Paris"
env_file:
- .env
depends_on:
db:
condition: service_healthy
container_name: portabase-app-prod
db:
image: postgres:16-alpine
ports:
- "5433:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=devdb
- POSTGRES_USER=devuser
- POSTGRES_PASSWORD=changeme
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U devuser -d devdb" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres-data:
| 1 | services: |
| 2 | app: |
| 3 | container_name: portabase |
| 4 | image: solucetechnologies/portabase:latest |
| 5 | ports: |
| 6 | - '8887:80' |
| 7 | environment: |
| 8 | TZ: "Europe/Paris" |
| 9 | env_file: |
| 10 | - .env |
| 11 | depends_on: |
| 12 | db: |
| 13 | condition: service_healthy |
| 14 | container_name: portabase-app-prod |
| 15 | |
| 16 | db: |
| 17 | image: postgres:16-alpine |
| 18 | ports: |
| 19 | - "5433:5432" |
| 20 | volumes: |
| 21 | - postgres-data:/var/lib/postgresql/data |
| 22 | environment: |
| 23 | - POSTGRES_DB=devdb |
| 24 | - POSTGRES_USER=devuser |
| 25 | - POSTGRES_PASSWORD=changeme |
| 26 | healthcheck: |
| 27 | test: [ "CMD-SHELL", "pg_isready -U devuser -d devdb" ] |
| 28 | interval: 10s |
| 29 | timeout: 5s |
| 30 | retries: 5 |
| 31 | |
| 32 | volumes: |
| 33 | postgres-data: |