-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
89 lines (83 loc) · 2.03 KB
/
docker-compose.yml
File metadata and controls
89 lines (83 loc) · 2.03 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: '3.8'
services:
# Core Project Development Service
dev:
build:
context: .
dockerfile: .devcontainer/Dockerfile
container_name: tsg-crossmsg-signing-dev
volumes:
- type: bind
source: .
target: /app
- gradle-cache:/home/gradle/.gradle
working_dir: /app
environment:
- GRADLE_OPTS=-Dorg.gradle.daemon=false
ports:
- "5005:5005" # Debug port
command: tail -f /dev/null
networks:
- crossmsg-network
# Spring Boot Backend
backend:
build:
context: ./webui-backend
dockerfile: Dockerfile
container_name: crossmsg-signing-backend
ports:
- "8080:8080"
environment:
- SPRING_PROFILES_ACTIVE=production
- SERVER_PORT=8080
volumes:
- ./logs:/app/logs
- ./src/test/resources/iso:/app/src/test/resources/iso:ro
networks:
- crossmsg-network
restart: unless-stopped
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/CrossMsg-Signing/api/health" ]
interval: 30s
timeout: 10s
retries: 3
# React Frontend
frontend:
build:
context: ./webui-frontend
dockerfile: Dockerfile
container_name: crossmsg-signing-frontend
ports:
- "3000:3000"
environment:
- REACT_APP_API_URL=http://backend:8080
networks:
- crossmsg-network
depends_on:
- backend
restart: unless-stopped
# Nginx Reverse Proxy
nginx:
image: nginx:alpine
container_name: crossmsg-signing-nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/ssl:/etc/nginx/ssl:ro
- ./logs/nginx:/var/log/nginx
networks:
- crossmsg-network
depends_on:
- backend
- frontend
restart: unless-stopped
networks:
crossmsg-network:
driver: bridge
volumes:
logs:
driver: local
gradle-cache:
name: tsg-crossmsg-signing-gradle-cache