2023-05-17 07:18:08 +00:00
|
|
|
services:
|
|
|
|
astro:
|
|
|
|
build:
|
|
|
|
context: astro
|
|
|
|
target: prod
|
2023-05-17 14:27:48 +00:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2023-06-07 08:21:48 +00:00
|
|
|
- "traefik.http.routers.${NAME}-astro.rule=Host(`${ASTRO_HOST}`)"
|
2023-05-17 14:27:48 +00:00
|
|
|
- "traefik.http.routers.${NAME}-astro.entrypoints=https"
|
|
|
|
- "traefik.http.routers.${NAME}-astro.tls.certresolver=httpresolver"
|
|
|
|
- traefik.docker.network=traefik_network
|
|
|
|
networks:
|
|
|
|
- traefik_network
|
2023-05-17 07:18:08 +00:00
|
|
|
|
|
|
|
payload:
|
|
|
|
build:
|
|
|
|
context: payload
|
|
|
|
target: prod
|
2023-06-07 08:19:45 +00:00
|
|
|
volumes:
|
|
|
|
- ./data/media:/prod/dist/media
|
2023-06-15 13:36:50 +00:00
|
|
|
environment:
|
|
|
|
- REPOSITORY=${REPOSITORY}
|
2023-05-17 14:27:48 +00:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
2023-06-07 08:21:48 +00:00
|
|
|
- traefik.http.routers.${NAME}-payload.rule=Host(`${PAYLOAD_HOST}`)
|
2023-05-17 14:27:48 +00:00
|
|
|
- traefik.http.routers.${NAME}-payload.entrypoints=https
|
|
|
|
- traefik.http.routers.${NAME}-payload.tls.certresolver=httpresolver
|
|
|
|
- traefik.docker.network=traefik_network
|
2023-05-17 16:00:40 +00:00
|
|
|
networks:
|
|
|
|
- traefik_network
|
2023-05-17 07:18:08 +00:00
|
|
|
|
2023-05-17 14:27:48 +00:00
|
|
|
networks:
|
|
|
|
traefik_network:
|
|
|
|
external: true
|