Skip to content

Commit ad404d4

Browse files
Use .env file to store secrets
1 parent c7de9b1 commit ad404d4

File tree

3 files changed

+15
-18
lines changed

3 files changed

+15
-18
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ shinyproxy/shiny-apps
44
**.bak
55
shinyproxy/application.yml
66
nginx/nginx.conf
7+
*.env

docker-compose.yml

+14-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "3"
1+
version: "3.9"
22
services:
33
nginx:
44
image: nginx
@@ -46,10 +46,8 @@ services:
4646
environment:
4747
- GF_SERVER_ROOT_URL=http://localhost:3000/grafana/
4848
- GF_SERVER_SERVE_FROM_SUB_PATH=true
49-
- GF_AUTH_ANONYMOUS_ENABLED=true
50-
- GF_AUTH_ANONYMOUS_ORG_NAME=Main Org.
51-
- GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer
52-
- GF_AUTH_ANONYMOUS_HIDE_VERSION=true
49+
- GF_SECURITY_ADMIN_USER=${GRAPHANA_USER:-graphana}
50+
- GF_SECURITY_ADMIN_PASSWORD=${GRAPHANA_PASSWORD:-graphana_pass}
5351

5452
redis:
5553
image: redis:6-alpine
@@ -101,7 +99,7 @@ services:
10199
ports:
102100
- 8787:8787
103101
environment:
104-
- PASSWORD=hello
102+
- PASSWORD=${RSTUDIO_PASSWORD:-rstudio_pass}
105103
profiles:
106104
- dev
107105

@@ -112,7 +110,8 @@ services:
112110
volumes:
113111
- postgres-data:/var/lib/postgresql/data
114112
environment:
115-
- POSTGRES_PASSWORD=postgres
113+
- POSTGRES_USER=${POSTGRES_USER:-postgres}
114+
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres_pass}
116115
ports:
117116
- 5432:5432
118117

@@ -139,8 +138,14 @@ services:
139138
- clickhouse
140139
ports:
141140
- 8000:8000
142-
env_file:
143-
- ./plausible/plausible-conf.env
141+
environment:
142+
- ADMIN_USER_EMAIL=${PLAUSIBLE_EMAIL:-someone@email.com}
143+
- ADMIN_USER_NAME=${PLAUSIBLE_USER:-plausible}
144+
- ADMIN_USER_PWD=${PLAUSIBLE_PASSWORD:-plausible_pass}
145+
- BASE_URL=https://compbio.imm.medicina.ulisboa.pt/plausible
146+
- SECRET_KEY_BASE=RcqevpL5w8SzrSl0lhNy08KDPrtJE8LGXqX/uvozyC6Vap6+yq6w0q10DJICqz06+3PeDopOmQ8Wq6q3kFtaMw==
147+
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/plausible
148+
- CLICKHOUSE_DATABASE_URL=http://clickhouse:8123/clickhouse
144149

145150
networks:
146151
default:

plausible/plausible-conf.env

-9
This file was deleted.

0 commit comments

Comments
 (0)