From 914342dfc4c019b246ecbe2189bc3841efb14e15 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Tue, 27 Dec 2022 00:24:07 +0900 Subject: [PATCH] set DRONE_USER_CREATE --- .env.example | 2 ++ compose.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/.env.example b/.env.example index d2d33f5..dd268c1 100644 --- a/.env.example +++ b/.env.example @@ -5,3 +5,5 @@ DRONE_GITEA_CLIENT_SECRET= DRONE_RPC_SECRET= DRONE_SERVER_HOST=${SERVER_HOST} DRONE_SERVER_PROTO=https +DRONE_ADMIN_USER= +DRONE_USER_CREATE=username:${DRONE_ADMIN_USER},admin:true diff --git a/compose.yml b/compose.yml index f3d9043..fe2e252 100644 --- a/compose.yml +++ b/compose.yml @@ -21,6 +21,7 @@ services: DRONE_RPC_SECRET: ${DRONE_RPC_SECRET:?} DRONE_SERVER_HOST: ${DRONE_SERVER_HOST:?} DRONE_SERVER_PROTO: ${DRONE_SERVER_PROTO:?} + DRONE_USER_CREATE: ${DRONE_USER_CREATE:?} volumes: - drone_data_v2:/data