File tree 2 files changed +53
-0
lines changed
2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ # ###########
2
+ # Tovy
3
+ # ###########
4
+
5
+ SESSION_SECRET = your-super-secret-32-char-key # Generate one here --> https://bitwarden.com/password-generator/
6
+ DATABASE_URL = postgresql://USER:PASSWORD@HOST:PORT/DATABASE # Levae this blank if you are self hosting with docker compose
7
+
8
+ # ###########
9
+ # Database - Only required if you are using postgres docker compose
10
+ # *Change theese in production*
11
+ # ###########
12
+
13
+ POSTGRES_PASSWORD = supersecretpassword
14
+ POSTGRES_USER = postgres
15
+ POSTGRES_DB = tovy
16
+ POSTGRES_PORT = 5432
17
+
Original file line number Diff line number Diff line change
1
+ version : " 3"
2
+ services :
3
+ tovy :
4
+ restart : " unless-stopped"
5
+ tty : true
6
+ build : " ."
7
+ environment :
8
+ SESSION_SECRET : ${SESSION_SECRET}
9
+ DATABASE_URL : ${DATABASE_URL:-postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}}
10
+ depends_on :
11
+ db : # Disable this if you are using an external Postgres database
12
+ condition : service_healthy
13
+ ports :
14
+ - " 3000:3000"
15
+
16
+ # Comment out everything below this point if you are using an external Postgres database
17
+ db :
18
+ image : " postgres:latest"
19
+ healthcheck :
20
+ test : pg_isready -U postgres -h localhost
21
+ interval : 5s
22
+ timeout : 5s
23
+ retries : 10
24
+ restart : unless-stopped
25
+ environment :
26
+ POSTGRES_PASSWORD : ${POSTGRES_PASSWORD}
27
+ POSTGRES_USER : ${POSTGRES_USER}
28
+ POSTGRES_DB : ${POSTGRES_DB}
29
+ ports :
30
+ - ${POSTGRES_PORT:-5432}:5432
31
+ volumes :
32
+ - db:/var/lib/postgresql/data
33
+
34
+ volumes :
35
+ db :
36
+ driver : local
You can’t perform that action at this time.
0 commit comments