Skip to content

Added composer yml's to override configuration#64

Merged
cableman merged 1 commit intodevelopfrom
feature/docker-override
Apr 7, 2022
Merged

Added composer yml's to override configuration#64
cableman merged 1 commit intodevelopfrom
feature/docker-override

Conversation

@cableman
Copy link
Copy Markdown
Contributor

@cableman cableman commented Apr 6, 2022

Ticket: https://jira.itkdev.dk/browse/SERV-534

Test setup:

Usage:

docker-compose --env-file .env.docker.local -f docker-compose.server.yml -f docker-compose.dev.yml up -d

Note:
The idea is to have a basic file docker-compose.server.yml with is then extended with one or more other yml files.

More information on the way in docs.

@cableman cableman requested review from rimi-itk and turegjorup April 6, 2022 14:10
@cableman cableman force-pushed the feature/docker-override branch from 234e19d to 2e5d947 Compare April 6, 2022 15:05
Comment on lines +11 to +30
nginx:
labels:
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=ITKBasicAuth@file"

mailhog:
image: mailhog/mailhog
networks:
- app
- frontend
labels:
- "traefik.enable=true"
- "traefik.docker.network=frontend"
- "traefik.http.routers.mailhog_${COMPOSE_PROJECT_NAME}-http.rule=Host(`mailhog.${COMPOSE_SERVER_DOMAIN}`)"
- "traefik.http.routers.mailhog_${COMPOSE_PROJECT_NAME}-http.entrypoints=web"
- "traefik.http.routers.mailhog_${COMPOSE_PROJECT_NAME}-http.middlewares=redirect-to-https"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.http.routers.mailhog_${COMPOSE_PROJECT_NAME}.rule=Host(`mailhog.${COMPOSE_SERVER_DOMAIN}`)"
- "traefik.http.routers.mailhog_${COMPOSE_PROJECT_NAME}.entrypoints=websecure"
- "traefik.http.services.mailhog_${COMPOSE_PROJECT_NAME}.loadbalancer.server.port=8025"
- "traefik.http.routers.mailhog_${COMPOSE_PROJECT_NAME}.middlewares=ITKMailhogAuth@file"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One could argue that it should be possible to activate “basic auth” (in nginx) and “mailhog” independently of each other.

@cableman cableman merged commit bd5ae49 into develop Apr 7, 2022
@cableman cableman deleted the feature/docker-override branch April 7, 2022 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants