fix perms of shared directories
This commit is contained in:
parent
0e02aa7d8d
commit
eb7670e5c3
|
@ -4,6 +4,12 @@ FROM node:18.17.0-bullseye
|
|||
|
||||
ENV NODE_ENV=development
|
||||
|
||||
ARG UID
|
||||
ARG GID
|
||||
RUN groupadd -fg "$GID" apprunner
|
||||
RUN useradd -m -u "$UID" -g "$GID" apprunner
|
||||
USER apprunner
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
EXPOSE 3000
|
||||
|
|
|
@ -21,7 +21,11 @@ services:
|
|||
- db:/var/lib/postgresql/data
|
||||
app:
|
||||
container_name: app
|
||||
build: ./
|
||||
build:
|
||||
context: ./
|
||||
args:
|
||||
- UID=${CURRENT_UID}
|
||||
- GID=${CURRENT_GID}
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3000"]
|
||||
|
@ -50,7 +54,11 @@ services:
|
|||
- sn_lnd
|
||||
worker:
|
||||
container_name: worker
|
||||
build: ./worker
|
||||
build:
|
||||
context: ./worker
|
||||
args:
|
||||
- UID=${CURRENT_UID}
|
||||
- GID=${CURRENT_GID}
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
db:
|
||||
|
|
2
sndev
2
sndev
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
docker__compose() {
|
||||
command docker compose --env-file .env.sndev "$@"
|
||||
CURRENT_UID=$(id -u) CURRENT_GID=$(id -g) command docker compose --env-file .env.sndev "$@"
|
||||
}
|
||||
|
||||
sndev__start() {
|
||||
|
|
|
@ -4,6 +4,10 @@ FROM node:18.17.0-bullseye
|
|||
|
||||
ENV NODE_ENV=development
|
||||
|
||||
WORKDIR /app
|
||||
ARG UID
|
||||
ARG GID
|
||||
RUN groupadd -fg "$GID" apprunner
|
||||
RUN useradd -m -u "$UID" -g "$GID" apprunner
|
||||
USER apprunner
|
||||
|
||||
EXPOSE 8080
|
||||
WORKDIR /app
|
Loading…
Reference in New Issue