Update docker
This commit is contained in:
parent
07c4f9e899
commit
6ee11bc076
2 changed files with 35 additions and 34 deletions
|
@ -19,7 +19,8 @@ CMD ["npm", "start"]
|
||||||
|
|
||||||
FROM development as build
|
FROM development as build
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
RUN npm run build
|
RUN npm run build:server
|
||||||
|
RUN npm run build:client
|
||||||
|
|
||||||
FROM base as production
|
FROM base as production
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
|
@ -13,39 +13,39 @@ services:
|
||||||
# image: index.docker.io/catarak/p5.js-web-editor:latest
|
# image: index.docker.io/catarak/p5.js-web-editor:latest
|
||||||
# uncomment the following lines if you don't want export all of the variables
|
# uncomment the following lines if you don't want export all of the variables
|
||||||
# defined in your .env file for testing
|
# defined in your .env file for testing
|
||||||
# env_file:
|
env_file:
|
||||||
# - "$PWD/.env.production"
|
- "$PWD/.env.production"
|
||||||
environment:
|
# environment:
|
||||||
- API_URL
|
# - API_URL
|
||||||
- AWS_ACCESS_KEY
|
# - AWS_ACCESS_KEY
|
||||||
- AWS_REGION
|
# - AWS_REGION
|
||||||
- AWS_SECRET_KEY
|
# - AWS_SECRET_KEY
|
||||||
- CORS_ALLOW_LOCALHOST
|
# - CORS_ALLOW_LOCALHOST
|
||||||
- EMAIL_SENDER
|
# - EMAIL_SENDER
|
||||||
- EMAIL_VERIFY_SECRET_TOKEN
|
# - EMAIL_VERIFY_SECRET_TOKEN
|
||||||
- EXAMPLE_USERNAME
|
# - EXAMPLE_USERNAME
|
||||||
- EXAMPLE_USER_EMAIL
|
# - EXAMPLE_USER_EMAIL
|
||||||
- EXAMPLE_USER_PASSWORD
|
# - EXAMPLE_USER_PASSWORD
|
||||||
- GG_EXAMPLES_USERNAME
|
# - GG_EXAMPLES_USERNAME
|
||||||
- GG_EXAMPLES_EMAIL
|
# - GG_EXAMPLES_EMAIL
|
||||||
- GG_EXAMPLES_PASS
|
# - GG_EXAMPLES_PASS
|
||||||
- ML5_EXAMPLES_USERNAME
|
# - ML5_EXAMPLES_USERNAME
|
||||||
- ML5_EXAMPLES_EMAIL
|
# - ML5_EXAMPLES_EMAIL
|
||||||
- ML5_EXAMPLES_PASS
|
# - ML5_EXAMPLES_PASS
|
||||||
- GITHUB_ID
|
# - GITHUB_ID
|
||||||
- GITHUB_SECRET
|
# - GITHUB_SECRET
|
||||||
- GOOGLE_ID
|
# - GOOGLE_ID
|
||||||
- GOOGLE_SECRET
|
# - GOOGLE_SECRET
|
||||||
- MAILGUN_DOMAIN
|
# - MAILGUN_DOMAIN
|
||||||
- MAILGUN_KEY
|
# - MAILGUN_KEY
|
||||||
- MONGO_URL
|
# - MONGO_URL
|
||||||
- PORT
|
# - PORT
|
||||||
- S3_BUCKET
|
# - S3_BUCKET
|
||||||
- S3_BUCKET_URL_BASE
|
# - S3_BUCKET_URL_BASE
|
||||||
- SESSION_SECRET
|
# - SESSION_SECRET
|
||||||
- UI_ACCESS_TOKEN_ENABLED
|
# - UI_ACCESS_TOKEN_ENABLED
|
||||||
- UPLOAD_LIMIT
|
# - UPLOAD_LIMIT
|
||||||
- MOBILE_ENABLED
|
# - MOBILE_ENABLED
|
||||||
|
|
||||||
# you can either set this in your .env or as an environment variables
|
# you can either set this in your .env or as an environment variables
|
||||||
# or here YOU CHOOSE
|
# or here YOU CHOOSE
|
||||||
|
|
Loading…
Reference in a new issue