Skip to content

Add https configuration #28

Description

@github-actions

- 443:443/tcp

The Web UI (enabled by --api.insecure=true)

Meta/compose.yaml

Lines 138 to 140 in 2e38a1d

# TODO: Add https configuration
#- 443:443/tcp
# The Web UI (enabled by --api.insecure=true)

services:
django:
build:
context: ./Registreringtarget: serverpull: truepull_policy: build#volumes:# - django_media:/app/media:rwcommand: daphne config.asgi:application -b 0.0.0.0depends_on:
- databaseprofiles:
- prodenv_file:
- .envenvironment:
REGISTRATION_HOSTNAME: ${REGISTRATION_HOSTNAME:-registration.eventaccess.localhost}labels:
- traefik.enable=true
- traefik.http.routers.registration-backend.rule=Host(`${REGISTRATION_HOSTNAME:-registration.eventaccess.localhost}`) && PathRegexp(`^/(api|admin)`)
- traefik.http.services.registration-backend.loadbalancer.server.port=8000#- traefik.http.routers.registration-backend.entrypoints=web,websecuredjango-staticfiles:
build:
context: ./Registreringtarget: static-serverpull: truepull_policy: build# TODO: Set up Django media dir# Do we need this?# I'm not sure if it is needed yet; low pri backlog#volumes:# - django_media:/srv/http/media:roprofiles:
- prodenv_file:
- .envenvironment:
REGISTRATION_HOSTNAME: ${REGISTRATION_HOSTNAME:-registration.eventaccess.localhost}SERVER_LOG_LEVEL: warnlabels:
- traefik.enable=true
- traefik.http.routers.registration-backend-staticfiles.rule=Host(`${REGISTRATION_HOSTNAME:-registration.eventaccess.localhost}`) && PathRegexp(`^/(static)`)
- traefik.http.services.registration-backend-staticfiles.loadbalancer.server.port=80#- traefik.http.routers.registration-backend-staticfiles.entrypoints=web,websecuredjango-dev:
build:
context: ./Registreringtarget: devpull: truepull_policy: buildcommand: python manage.py runserver 0.0.0.0:8000volumes:
- ./Registrering:/app:rwports:
- "8000:8000"env_file:
- .envdepends_on:
- databaseprofiles:
- devenvironment:
REGISTRATION_HOSTNAME: ${REGISTRATION_HOSTNAME:-registration.eventaccess.localhost}labels:
- traefik.enable=true
- traefik.http.routers.registration-backend.rule=Host(`${REGISTRATION_HOSTNAME:-registration.eventaccess.localhost}`) && PathRegexp(`^/(api|admin|static)`)#- traefik.http.routers.registration-backend.entrypoints=web,websecuredatabase:
image: postgres:17env_file:
- .envshm_size: 256MBvolumes:
- postgres_data:/var/lib/postgresql/data/profiles:
- prod
- devnextjs:
build:
context: ./Registrering/registration-frontend-react/target: static-serverpull: truepull_policy: buildprofiles:
- prodenvironment:
REGISTRATION_HOSTNAME: ${REGISTRATION_HOSTNAME:-registration.eventaccess.localhost}labels:
- traefik.enable=true
- traefik.http.routers.registration-frontend.rule=Host(`${REGISTRATION_HOSTNAME:-registration.eventaccess.localhost}`)
- traefik.http.services.registration-frontend.loadbalancer.server.port=80#- traefik.http.routers.registration-frontend.entrypoints=web,websecurenextjs-dev:
build:
context: ./Registrering/registration-frontend-react/target: dev-serverpull: truepull_policy: buildvolumes:
- ./Registrering/registration-frontend-react:/app:rwports:
- 3000:3000/tcpprofiles:
- devenvironment:
REGISTRATION_HOSTNAME: ${REGISTRATION_HOSTNAME:-registration.eventaccess.localhost}labels:
- traefik.enable=true
- traefik.http.routers.registration-frontend.rule=Host(`${REGISTRATION_HOSTNAME:-registration.eventaccess.localhost}`)#- traefik.http.routers.registration-frontend.entrypoints=web,websecurereverse-proxy:
image: traefik:v3.2.0pull_policy: alwayscommand:
- --api.insecure=true
- --providers.docker
- --entryPoints.web.address=:80#- --entryPoints.websecure.address=:443
- --providers.docker.exposedbydefault=falseports:
- 80:80/tcp# TODO: Add https configuration#- 443:443/tcp# The Web UI (enabled by --api.insecure=true)
- 8080:8080profiles:
- dev
- prodvolumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock:rovolumes:
postgres_data:
#django_media:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions