Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
Max Schmidt 2023-05-19 13:15:32 +02:00
parent 745db317ce
commit bf16b2b010
2 changed files with 3 additions and 1 deletions

View File

@ -55,7 +55,7 @@ This will start up the Astro, Payloadcms and Mongo containers and make them avai
## Development ## Development
The `docker-compose.yml` and `docker-compose-dev.yml` files includes everything you need to run the containers. The containers use the environment variables declared in the `.env.dev` file and mounted volumes to store data persistently even after the containers are stopped and started. The `docker-compose.yml` and `docker-compose-dev.yml` files includes everything you need to run the containers. The containers use the environment variables declared in the `.env` file and mounted volumes to store data persistently even after the containers are stopped and started.
## Deployment ## Deployment

View File

@ -5,6 +5,8 @@ services:
target: prod target: prod
environment: environment:
PAYLOAD_URL: ${PAYLOAD_URL} PAYLOAD_URL: ${PAYLOAD_URL}
volumes:
- ./data/media:/prod/dist/media
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.${NAME}-astro.rule=Host(`${ASTRO_URL}`)" - "traefik.http.routers.${NAME}-astro.rule=Host(`${ASTRO_URL}`)"