File tree 1 file changed +36
-0
lines changed
1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ echo ' version: ' " '" ' 3.7' " '" '
2
+
3
+ services:
4
+ postgres:
5
+ image: postgres:alpine
6
+ ports:
7
+ - "5432:5432"
8
+ environment:
9
+ - POSTGRES_PASSWORD=root
10
+ healthcheck:
11
+ test: [ "CMD-SHELL", "pg_isready -U postgres" ]
12
+ interval: 5s
13
+ timeout: 5s
14
+ retries: 5
15
+
16
+ web:
17
+ links:
18
+ - postgres
19
+ depends_on:
20
+ postgres:
21
+ condition: service_healthy
22
+ image: "registry.digger.dev/diggerhq/digger_backend:latest"
23
+ env_file:
24
+ - .env
25
+ ports:
26
+ - "3000:3000"' > docker-compose.yml && \
27
+ echo " GITHUB_ORG=${GITHUB_ORG:- your_github_org}
28
+ HOSTNAME=http://DIGGER_HOSTNAME
29
+ BEARER_AUTH_TOKEN=$( openssl rand -base64 12)
30
+ DATABASE_URL=postgres://postgres:root@postgres:5432/postgres?sslmode=disable
31
+ HTTP_BASIC_AUTH=1
32
+ HTTP_BASIC_AUTH_USERNAME=myorg
33
+ HTTP_BASIC_AUTH_PASSWORD=$( openssl rand -base64 12)
34
+ ALLOW_DIRTY=false" > .env && \
35
+ echo -e " \033[1;32m✔ docker-compose\033[0m and \033[1;34m.env\033[0m files stored successfully! \n\033[1;36m🚀 launching services...\033[0m\n\n\033[1;33mℹ️ For next steps visit:\033[0m \033[4;36mhttps://docs.digger.dev/ce/self-host/deploy-docker-compose#setup-docker-compose-file\033[0m" && \
36
+ docker-compose up
You can’t perform that action at this time.
0 commit comments