diff --git a/.env.example b/.env.example index 63728b2..446986d 100644 --- a/.env.example +++ b/.env.example @@ -2,16 +2,19 @@ DATABASE_URL="mysql://USER:PASSWORD@127.0.0.1:3306/chocomae" AUTH_SECRET="replace-with-local-secret" NEXTAUTH_SECRET="replace-with-local-secret" +AUTH_URL="http://localhost:3000" NEXTAUTH_URL="http://localhost:3000" # Production example (.env.production) # DATABASE_URL="mysql://USER:PASSWORD@AWS_EC2_HOST:3306/chocomae" # AUTH_SECRET="replace-with-production-secret" # NEXTAUTH_SECRET="replace-with-production-secret" -# NEXTAUTH_URL="http://NAS_HOST_OR_DOMAIN:3000" +# AUTH_URL="https://NAS_HOST_OR_DOMAIN" +# NEXTAUTH_URL="https://NAS_HOST_OR_DOMAIN" # Stage example (.env.stage) # DATABASE_URL="mysql://USER:PASSWORD@STAGE_DB_HOST:3306/chocomae" # AUTH_SECRET="replace-with-stage-secret" # NEXTAUTH_SECRET="replace-with-stage-secret" -# NEXTAUTH_URL="http://STAGE_HOST_OR_DOMAIN:3000" +# AUTH_URL="https://STAGE_HOST_OR_DOMAIN" +# NEXTAUTH_URL="https://STAGE_HOST_OR_DOMAIN" diff --git a/docker-compose.stage.yml b/docker-compose.stage.yml index f167f6f..450d386 100644 --- a/docker-compose.stage.yml +++ b/docker-compose.stage.yml @@ -5,8 +5,8 @@ services: dockerfile: Dockerfile image: chocoadmin-stage:latest container_name: stage-chocoadmin - ports: - - "3000:3000" + expose: + - "3000" env_file: - .env.stage environment: