We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents db514f3 + 12f605c commit 0f4ddf0Copy full SHA for 0f4ddf0
Dockerfile
@@ -8,6 +8,7 @@ COPY . .
8
9
RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/flyadmin ./cmd/flyadmin
10
RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/start ./cmd/start
11
+COPY ./bin/* /fly/bin/
12
13
FROM postgres:${PG_VERSION}
14
ENV PGDATA=/data/pg_data
bin/connect
@@ -0,0 +1,7 @@
1
+#!/bin/bash
2
+
3
+DATABASE=${1:-postgres}
4
+USERNAME=${2:-postgres}
5
+PASSWORD=${3:-$OPERATOR_PASSWORD}
6
7
+psql postgres://$USERNAME:$PASSWORD@$FLY_APP_NAME.internal:5432/$DATABASE
0 commit comments