-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
63 lines (58 loc) · 1.52 KB
/
docker-compose.yaml
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
60
61
62
63
services:
diogenes-ng:
container_name: diogenes-ng
image: nck974/diogenes-ng:latest
restart: unless-stopped
depends_on:
- diogenes
environment:
- PRODUCTION=true
- DEBUG=false
- DIOGENES_BACKEND_URL=https://${SERVER_IP}/diogenes
ports:
- 8081:80
diogenes:
container_name: diogenes
image: nck974/diogenes:latest
restart: unless-stopped
depends_on:
- diogenes-db
environment:
- SPRING_DATASOURCE_JDBC-URL=jdbc:postgresql://diogenes-db:5432/diogenes_db
- SPRING_DATASOURCE_USERNAME=${DATABASE_USER}
- SPRING_DATASOURCE_PASSWORD=${DATABASE_PASSWORD}
- SPRING_APPLICATION_JSON={"jwt.secret":"${TOKEN_SECRET}", "file.images-host":"","ai.gemini.api-key":"${GEMINI_API}"}
ports:
- 8080:8080
volumes:
- files:/uploads
diogenes-db:
container_name: diogenes-db
image: postgres:14.1-alpine
restart: unless-stopped
environment:
- POSTGRES_USER=${DATABASE_USER}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_DB=diogenes_db
ports:
- 5432:5432
volumes:
- db:/var/lib/postgresql/data
reverse-proxy:
container_name: diogenes-reverse-proxy
image: nck974/diogenes-reverse-proxy:latest
restart: unless-stopped
ports:
- 443:443
- 80:80
environment:
- NGINX_HOST=${SERVER_IP}
volumes:
- ./ssl/:/etc/nginx/ssl/:ro
volumes:
db:
driver: local
name: diogenes_db_volume
files:
driver: local
name: diogenes_files_volume