This repository was archived by the owner on Feb 27, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (53 loc) · 1.55 KB
/
docker-compose.yml
File metadata and controls
58 lines (53 loc) · 1.55 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
services:
postgresql:
image: postgres:15
environment:
- POSTGRES_USER=${POSTGRESQL_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRESQL_PASSWORD:-fake}
- POSTGRES_DB=${POSTGRESQL_DBNAME:-budgetzen}
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
ulimits:
memlock:
soft: -1
hard: -1
restart: unless-stopped
website:
image: ghcr.io/brunobernardino/budgetzen-web:main
# If you want to build the image locally, uncomment the following lines and comment the image line above
# build:
# context: .
# dockerfile: Dockerfile
ports:
- ${PORT:-8000}:8000
restart: unless-stopped
environment:
- BASE_URL=${BASE_URL:-https://localhost}
- POSTGRESQL_HOST=${POSTGRESQL_HOST:-postgresql}
- POSTGRESQL_USER=${POSTGRESQL_USER:-postgres}
- POSTGRESQL_PASSWORD=${POSTGRESQL_PASSWORD:-fake}
- POSTGRESQL_DBNAME=${POSTGRESQL_DBNAME:-budgetzen}
- POSTGRESQL_PORT=${POSTGRESQL_PORT:-5432}
- POSTGRESQL_CAFILE=${POSTGRESQL_CAFILE:-}
- BREVO_API_KEY=${BREVO_API_KEY:-}
- STRIPE_API_KEY=${STRIPE_API_KEY:-}
# any non-empty value will be considered true
- IS_UNSAFE_SELF_HOSTED="true"
depends_on:
- postgresql
- caddy
caddy:
image: caddy:2-alpine
restart: unless-stopped
command: caddy reverse-proxy --from https://localhost:443 --to http://website:8000
ports:
- 443:443
volumes:
- caddy:/data
volumes:
pgdata:
driver: local
caddy:
driver: local