Correct container execution user to appropriate account on the server
This commit is contained in:
parent
47fc78057d
commit
833b304002
2 changed files with 1 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ services:
|
||||||
- DATABASE_URL=mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@mysql:3306/${MYSQL_DATABASE}
|
- DATABASE_URL=mysql://${MYSQL_USER}:${MYSQL_PASSWORD}@mysql:3306/${MYSQL_DATABASE}
|
||||||
depends_on:
|
depends_on:
|
||||||
- mysql
|
- mysql
|
||||||
|
user: 1004
|
||||||
volumes:
|
volumes:
|
||||||
- ~/astra-logs:/var/log
|
- ~/astra-logs:/var/log
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,5 @@ RUN chown appuser:appuser /usr/local/bin/rust-engine \
|
||||||
&& chown appuser:appuser /var/log/astra-errors.log
|
&& chown appuser:appuser /var/log/astra-errors.log
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
USER appuser
|
|
||||||
# Redirect all output to /var/log/astra-errors.log for easy monitoring
|
# Redirect all output to /var/log/astra-errors.log for easy monitoring
|
||||||
ENTRYPOINT ["/bin/sh", "-c", "/usr/local/bin/rust-engine >> /var/log/astra-errors.log 2>&1"]
|
ENTRYPOINT ["/bin/sh", "-c", "/usr/local/bin/rust-engine >> /var/log/astra-errors.log 2>&1"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue