Repository navigation
Expand file tree
/
Copy pathdocker-compose.postgres.yml
More file actions
59 lines (59 loc) · 2.53 KB
/
Copy pathdocker-compose.postgres.yml
File metadata and controls
59 lines (59 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
services:
hashtopolis-backend:
container_name: hashtopolis-backend
image: hashtopolis/backend:latest
restart: always
volumes:
- hashtopolis:/usr/local/share/hashtopolis:Z
# - ./ssmtp.conf:/etc/ssmtp/ssmtp.conf
# - ./jwks.json:/keys/jwks.json:ro
environment:
HASHTOPOLIS_DB_TYPE: postgres
HASHTOPOLIS_DB_USER: $POSTGRES_USER
HASHTOPOLIS_DB_PASS: $POSTGRES_PASSWORD
HASHTOPOLIS_DB_HOST: $HASHTOPOLIS_DB_HOST
HASHTOPOLIS_DB_DATABASE: $POSTGRES_DATABASE
HASHTOPOLIS_ADMIN_USER: $HASHTOPOLIS_ADMIN_USER
HASHTOPOLIS_ADMIN_PASSWORD: $HASHTOPOLIS_ADMIN_PASSWORD
HASHTOPOLIS_BACKEND_URL: $HASHTOPOLIS_BACKEND_URL
# Origins the API shares authenticated responses with, beyond its own. Needed when the frontend
# is served from a different host; see env.*.example. Same-origin setups need neither this nor
# HASHTOPOLIS_FRONTEND_PORT.
HASHTOPOLIS_FRONTEND_URLS: $HASHTOPOLIS_FRONTEND_URLS
# Shorthand for "the backend's own host and scheme, on this port". Set HASHTOPOLIS_FRONTEND_PORT=
# in the .env file to switch it off and let HASHTOPOLIS_FRONTEND_URLS be the whole story. The
# default must use ${VAR-default} and not ${VAR:-default}: the latter treats an explicitly empty
# value as absent and would put 4200 straight back.
HASHTOPOLIS_FRONTEND_PORT: ${HASHTOPOLIS_FRONTEND_PORT-4200}
# How the refresh cookie is written. Both are optional and only needed when the frontend sits on
# a different domain (SAMESITE=None) or behind a proxy that terminates TLS without announcing it
# through X-Forwarded-Proto (SECURE=true). Leaving them empty keeps the safe defaults.
HASHTOPOLIS_REFRESH_COOKIE_SAMESITE: $HASHTOPOLIS_REFRESH_COOKIE_SAMESITE
HASHTOPOLIS_REFRESH_COOKIE_SECURE: $HASHTOPOLIS_REFRESH_COOKIE_SECURE
depends_on:
- db
ports:
- "8080:80"
db:
container_name: db
image: postgres:18
restart: always
volumes:
- db:/var/lib/postgresql
environment:
POSTGRES_DB: $POSTGRES_DATABASE
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
hashtopolis-frontend:
container_name: hashtopolis-frontend
image: hashtopolis/frontend:latest
environment:
HASHTOPOLIS_BACKEND_URL: $HASHTOPOLIS_BACKEND_URL
restart: always
depends_on:
- hashtopolis-backend
ports:
- "4200:80" # When changing the host port don't forget to also update the HASHTOPOLIS_FRONTEND_PORT variable above
volumes:
db:
hashtopolis: