make app docker volume friendly
This commit is contained in:
parent
919e5d3751
commit
81a72578a1
2
.env
2
.env
@ -1,3 +1,3 @@
|
||||
DATABASE_URL=app.db
|
||||
DATABASE_URL=data/app.db
|
||||
BIND_ADDRESS=127.0.0.1:7800
|
||||
HASH_COST=8
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
/target
|
||||
.idea
|
||||
.vscode
|
||||
/app_db.db
|
||||
app.db
|
||||
/data
|
@ -33,7 +33,7 @@ RUN groupadd $APP_USER \
|
||||
COPY ./.env ${APP}/.env
|
||||
COPY ./migrations ${APP}/migrations
|
||||
COPY ./static ${APP}/static
|
||||
COPY ./db/empty.db ${APP}/app.db
|
||||
COPY ./db/empty.db ${APP}/data/app.db
|
||||
COPY --from=builder /actix-demo/target/release/actix-demo ${APP}/actix-demo
|
||||
|
||||
RUN chown -R $APP_USER:$APP_USER ${APP}
|
||||
|
@ -17,7 +17,7 @@ RUN groupadd $APP_USER \
|
||||
COPY ./.env ${APP}/.env
|
||||
COPY ./migrations ${APP}/migrations
|
||||
COPY ./static ${APP}/static
|
||||
COPY ./db/empty.db ${APP}/app.db
|
||||
COPY ./db/empty.db ${APP}/data/app.db
|
||||
COPY ./target/release/actix-demo ${APP}/actix-demo
|
||||
|
||||
RUN chown -R $APP_USER:$APP_USER ${APP}
|
||||
|
Loading…
Reference in New Issue
Block a user