-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
44 lines (42 loc) · 1.16 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
services:
bonds:
image: ghcr.io/naiba/bonds:latest
ports:
- "8080:8080"
volumes:
- bonds-data:/app/data
environment:
- SERVER_PORT=8080
- DB_DRIVER=sqlite
- DB_DSN=/app/data/bonds.db
- JWT_SECRET=${JWT_SECRET:-change-me-in-production}
- APP_ENV=production
- APP_URL=http://localhost:8080
restart: unless-stopped
# PostgreSQL example (uncomment to use instead of SQLite):
# bonds:
# image: ghcr.io/naiba/bonds:latest
# ports:
# - "8080:8080"
# depends_on:
# - postgres
# environment:
# - SERVER_PORT=8080
# - DB_DRIVER=postgres
# - DB_DSN=host=postgres port=5432 user=bonds password=bonds dbname=bonds sslmode=disable
# - JWT_SECRET=${JWT_SECRET:-change-me-in-production}
# - APP_ENV=production
# - APP_URL=http://localhost:8080
# restart: unless-stopped
# postgres:
# image: postgres:17-alpine
# volumes:
# - postgres-data:/var/lib/postgresql/data
# environment:
# - POSTGRES_USER=bonds
# - POSTGRES_PASSWORD=bonds
# - POSTGRES_DB=bonds
# restart: unless-stopped
volumes:
bonds-data:
# postgres-data: