From d341db4bf951675baedeea4b6c060b223330ec85 Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Mon, 11 May 2020 10:45:59 +0100 Subject: [PATCH] Deploy to do --- .drone-do.star | 14 ++++++++++++++ README.md | 2 -- docker-compose.yml | 6 +++--- 3 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 .drone-do.star diff --git a/.drone-do.star b/.drone-do.star new file mode 100644 index 0000000..34feb18 --- /dev/null +++ b/.drone-do.star @@ -0,0 +1,14 @@ + +load("@this//commento:drone.star", "drone") +load("@this//commento:stack-name.star", "stackName") +load("@this//commento:stack-root.star", "stackRoot") + +def main(ctx): + return drone( + ctx, + "do", + stackRoot, + stackName, + [] + ) + \ No newline at end of file diff --git a/README.md b/README.md index ba41ad9..881eedf 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,7 @@ * commento-github-key * commento-github-secret * commento-origin -* commento-postgres-db * commento-postgres-password -* commento-postgres-user * commento-smtp-from-address * commento-smtp-host * commento-smtp-port diff --git a/docker-compose.yml b/docker-compose.yml index 5cfe0c5..fa1a0a7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,7 +20,7 @@ services: COMMENTO_GITHUB_SECRET: $COMMENTO_GITHUB_SECRET COMMENTO_FORBID_NEW_OWNERS: $COMMENTO_FORBID_NEW_OWNERS COMMENTO_PORT: 8080 - COMMENTO_POSTGRES: postgres://${COMMENTO_POSTGRES_USER}:${COMMENTO_POSTGRES_PASSWORD}@commento-postgres:5432/${COMMENTO_POSTGRES_DB}?sslmode=disable + COMMENTO_POSTGRES: postgres://commento:${COMMENTO_POSTGRES_PASSWORD}@commento-postgres:5432/commento?sslmode=disable networks: - appnet - externalnet @@ -33,8 +33,8 @@ services: condition: any image: postgres:11-alpine environment: - POSTGRES_DB: ${COMMENTO_POSTGRES_DB} - POSTGRES_USER: ${COMMENTO_POSTGRES_USER} + POSTGRES_DB: commento + POSTGRES_USER: commento POSTGRES_PASSWORD: ${COMMENTO_POSTGRES_PASSWORD} networks: - appnet