From 93a9ba815980d0671baa4c632ff27ab8ba22d143 Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Fri, 1 Nov 2024 18:44:36 -0500 Subject: [PATCH] consistent ownership Signed-off-by: eternal-flame-AD --- compose_example.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/compose_example.yml b/compose_example.yml index 98aa5fd18e..12554b04fd 100644 --- a/compose_example.yml +++ b/compose_example.yml @@ -2,6 +2,8 @@ services: nyuukyou: build: yume-mods/nyuukyou restart: always + user: "${MISSKEY_UID}:${MISSKEY_GID}" + profiles: [web] links: - web depends_on: @@ -16,8 +18,14 @@ services: - ./nyuukyou:/store web: - build: . + build: + context: . + args: + - UID: "${MISSKEY_UID}" + - GID: "${MISSKEY_GID}" + profiles: [web] restart: always + user: "${MISSKEY_UID}:${MISSKEY_GID}" links: - db - redis @@ -42,6 +50,7 @@ services: redis: restart: always image: redis:7-alpine + user: "${MISSKEY_UID}:${MISSKEY_GID}" networks: - internal_network volumes: @@ -54,6 +63,7 @@ services: db: restart: always image: postgres:15-alpine + user: "${MISSKEY_UID}:${MISSKEY_GID}" networks: - internal_network env_file: @@ -69,6 +79,7 @@ services: db-publish: restart: always image: alpine/socat + user: "${MISSKEY_UID}:${MISSKEY_GID}" links: - db networks: