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 # If you run GegeJdrBackend in production, DO NOT use mailpit. # This tool is for testing only. Instead, you should use a real SMTP # provider, such as Mailgun, Mailwhale, or Postal. mailpit: image: axllent/mailpit:latest restart: unless-stopped container_name: gege-jdr-backend-mailpit ports: - 127.0.0.1:8025:8025 # WebUI - 127.0.0.1:1025:1025 # SMTP volumes: - gege_jdr_backend_mailpit:/data environment: MP_MAX_MESSAGES: 5000 MP_DATABASE: /data/mailpit.db MP_SMTP_AUTH_ACCEPT_ANY: 1 MP_SMTP_AUTH_ALLOW_INSECURE: 1 volumes: gege_jdr_backend_db_data: gege_jdr_backend_pgadmin_data: gege_jdr_backend_mailpit: