mirror of
https://github.com/LucasVbr/game-lib.git
synced 2026-05-13 17:21:51 +00:00
31 lines
809 B
YAML
31 lines
809 B
YAML
name: ${PROJECT}
|
|
|
|
services:
|
|
web-legacy:
|
|
image: caddy:alpine
|
|
volumes:
|
|
- ./apps/web-legacy:/usr/share/caddy:ro
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.${PROJECT}_web_legacy.rule=Host(`web-legacy.${PROJECT}.localhost`)"
|
|
- "traefik.http.services.${PROJECT}_web_legacy.loadbalancer.server.port=80"
|
|
networks:
|
|
- traefik
|
|
|
|
web:
|
|
build:
|
|
context: ./apps/web
|
|
target: ${ENV_MODE:-production}
|
|
volumes:
|
|
- ./apps/web:/app:cached
|
|
- /app/node_modules
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.${PROJECT}_web.rule=Host(`web.${PROJECT}.localhost`)"
|
|
- "traefik.http.services.${PROJECT}_web.loadbalancer.server.port=3000"
|
|
networks:
|
|
- traefik
|
|
|
|
networks:
|
|
traefik:
|
|
external: true |