Kopie van https://gitlab.com/studieverenigingvia/ict/centurion met een paar aanpassingen
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
centurion/docker-compose.yml

35 lines
754 B

version: "3.4"
services:
backend:
build:
context: ./backend
restart: unless-stopped
networks:
- centurion
frontend:
build:
context: ./frontend
environment:
NODE_ENV: production
expose:
- 80
restart: unless-stopped
networks:
- web
- centurion
labels:
- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.http.routers.centurion.rule=Host(`centurion.harambee.utwente.nl`)"
- "traefik.http.routers.centurion.tls=true"
- "traefik.http.routers.centurion.tls.options=default"
- "traefik.http.routers.centurion.tls.certresolver=letsencrypt"
networks:
web:
external: true
centurion:
name: centurion
internal: true