mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
9eed6fb1be
- added proxy stack - amended README for docker development - increased cert duration --------- Co-authored-by: Pavel Balashou <ba1ashpash@gmail.com> Co-authored-by: Yule <b.baedorf@openproject.com>
28 lines
867 B
YAML
28 lines
867 B
YAML
services:
|
|
backend:
|
|
# The backend container needs some variables to be configured properly
|
|
environment:
|
|
OPENPROJECT_CLI_PROXY: '${OPENPROJECT_DEV_URL}'
|
|
OPENPROJECT_DEV_EXTRA_HOSTS: '${OPENPROJECT_DEV_HOST}'
|
|
OPENPROJECT_HTTPS: true
|
|
networks:
|
|
- external
|
|
|
|
frontend:
|
|
networks:
|
|
- external
|
|
# Those label interpreted by traefik to create the correct HTTP router
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.openproject.rule=Host(`${OPENPROJECT_DEV_HOST}`)"
|
|
- "traefik.http.routers.openproject.entrypoints=websecure"
|
|
- "traefik.http.routers.openproject.tls=true"
|
|
- "traefik.http.routers.openproject.tls.certresolver=step"
|
|
|
|
# You need to define the same external network
|
|
# that is defined in the TLS proxy compose file
|
|
networks:
|
|
external:
|
|
name: gateway
|
|
external: true
|