mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 15:27:49 +01:00
merge ENV's together in Dockerfile
This commit is contained in:
26
Dockerfile
26
Dockerfile
@@ -18,24 +18,24 @@ RUN npm run build
|
||||
WORKDIR ../
|
||||
|
||||
#ENV PORT=8080
|
||||
ENV DATA_DIR=data
|
||||
|
||||
ENV TYPEORM_CONNECTION=mariadb
|
||||
#ENV TYPEORM_HOST=localhost
|
||||
#ENV TYPEORM_USERNAME=root
|
||||
#ENV TYPEORM_PASSWORD=admin
|
||||
#ENV TYPEORM_DATABASE=test
|
||||
#ENV TYPEORM_PORT=3000
|
||||
ENV TYPEORM_SYNCHRONIZE=false
|
||||
ENV TYPEORM_LOGGING=false
|
||||
ENV TYPEORM_ENTITIES=src/entity/**/*.ts
|
||||
ENV TYPEORM_ENTITIES_DIR=src/entity
|
||||
ENV TYPEORM_MIGRATIONS=src/migration/**/*.ts
|
||||
ENV TYPEORM_MIGRATIONS_DIR=src/migration
|
||||
ENV TYPEORM_SUBSCRIBERS=src/subscriber/**/*.ts
|
||||
ENV TYPEORM_SUBSCRIBERS_DIR=src/subscriber
|
||||
ENV TYPEORM_DRIVER_EXTRA='{"charset": "utf8mb4"}'
|
||||
ENV NODE_ENV=production
|
||||
|
||||
ENV DATA_DIR=data\
|
||||
TYPEORM_CONNECTION=mariadb\
|
||||
TYPEORM_SYNCHRONIZE=false\
|
||||
TYPEORM_LOGGING=false\
|
||||
TYPEORM_ENTITIES=src/entity/**/*.ts\
|
||||
TYPEORM_ENTITIES_DIR=src/entity\
|
||||
TYPEORM_MIGRATIONS=src/migration/**/*.ts\
|
||||
TYPEORM_MIGRATIONS_DIR=src/migration\
|
||||
TYPEORM_SUBSCRIBERS=src/subscriber/**/*.ts\
|
||||
TYPEORM_SUBSCRIBERS_DIR=src/subscriber\
|
||||
TYPEORM_DRIVER_EXTRA='{"charset": "utf8mb4"}'\
|
||||
NODE_ENV=production
|
||||
|
||||
#EXPOSE 8080
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ docker-compose example in `dockercomposeexample` folder
|
||||
|
||||
* `HTTPS` (`"yes"`/`"no"`) - whether the server enforces HTTPS or not
|
||||
|
||||
* `SIGNUP_ALLOWED` (`"yes"`/`"no"`) - whether signups are allowed or not, persistent
|
||||
* `SIGNUP_ALLOWED` (`"yes"`/`"no"`) - whether signups are allowed or not, persistent (but the first signup is always allowed)
|
||||
|
||||
* `API_ROOT`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user