portabase / Portbase

Last active 4 months ago

Like 0

Portabase Docker Compose

portabase revised this gist 8 months ago · d6beb34

2 files changed, 60 insertions

.env.example (file created)
@@ -0,0 +1,27 @@
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 + # Google
22 + AUTH_GOOGLE_ID=
23 + AUTH_GOOGLE_SECRET=
24 + AUTH_GOOGLE_METHOD=
25 +
26 + # Retention
27 + RETENTION_CRON="* * * * *"
docker-compose.yml (file created)
@@ -0,0 +1,33 @@
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: