gege-jdr-backend/docker/compose.dev.yml
Lucien Cartier-Tilet 9489f78224
Some checks failed
CI / tests (push) Failing after 3m53s
feat: initial OAuth implementation with Discord
For now, only a basic implementation of OAuth with Discord is
implemented. If the user calls the Discord signin endpoint, they get
redirected to Discord’s OAuth page. Once they accept, they get
redirected back to the backend’s callback API endpoint. The token the
user got from Discord is stored in the user’s session.

When the user wants to log out, the user’s session’s token is wiped.

This commit also updates the dependencies of the project. It also
removes the dependency lettre as well as the mailpit docker service
for developers as it appears clearer this project won’t send emails
anytime soon.
2024-11-23 10:09:03 +01:00

37 lines
988 B
YAML

services:
db:
image: postgres:16-alpine
restart: unless-stopped
container_name: gege-jdr-backend-db
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: ${DB_NAME}
ports:
- 127.0.0.1:5432:5432
volumes:
- gege_jdr_backend_db_data:/var/lib/postgresql/data
# If you run GegeJdrBackend in production, I recommend you to
# not run PgAdmin with it.
pgadmin:
image: dpage/pgadmin4:8
restart: unless-stopped
container_name: gege-jdr-backend-pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: admin@example.com
PGADMIN_DEFAULT_PASSWORD: password
# Disables sending emails. Disable it if you decide to run
# PgAdmin in production
PGADMIN_DISABLE_POSTFIX: true
ports:
- 127.0.0.1:8080:80
volumes:
- gege_jdr_backend_pgadmin_data:/var/lib/pgadmin
depends_on:
- db
volumes:
gege_jdr_backend_db_data:
gege_jdr_backend_pgadmin_data: