diff --git a/.env b/.env index 9ce9810..994507e 100644 --- a/.env +++ b/.env @@ -1,10 +1,13 @@ +# This file is just for local dev; see for live deployment NAME=astroad -ASTRO_HOST=localhost:3000 -PAYLOAD_HOST=payload:3001 -PAYLOAD_URL=http://localhost:3001 -PAYLOAD_PORT=3001 + +PAYLOAD_URL=http://localhost:3003 +PAYLOAD_PORT=3003 + +############################################################################## +# Infinite nerd depth settings, you probably don't need to change these # +############################################################################## + PAYLOAD_SECRET=supersecretkey MONGODB_USER=payload MONGODB_PASSWORD=password -TOKEN=supersecrettoken -REPOSITORY=mooxl/astroad diff --git a/docker-compose.yml b/docker-compose.yml index c40ecfc..7c6a4ad 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,8 +27,8 @@ services: environment: DEV: 1 NAME: ${NAME} - PAYLOAD_URL: ${PAYLOAD_URL} NODE_ENV: development + PAYLOAD_URL: "http://localhost:${PAYLOAD_PORT}" PAYLOAD_PORT: ${PAYLOAD_PORT} PAYLOAD_SECRET: ${PAYLOAD_SECRET} MONGODB_USER: @@ -39,8 +39,10 @@ services: volumes: - ./payload/src:/base/src - ./astro/src/types.ts:/types.ts + volumes: + - payload_media:/prod/dist/media ports: - - 3001:3001 + - ${PAYLOAD_PORT}:${PAYLOAD_PORT} networks: - front - back @@ -69,3 +71,4 @@ networks: volumes: mongo: + payload_media: