-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (51 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
55 lines (51 loc) · 1.2 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
version: '3.8'
services:
dynamodb:
image: amazon/dynamodb-local:latest
container_name: chat-analytics-dynamodb
ports:
- "8000:8000"
command: ["-jar", "DynamoDBLocal.jar", "-sharedDb", "-inMemory"]
networks:
- chat-network
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: chat-analytics-backend
ports:
- "8080:8080"
environment:
- PORT=8080
- DYNAMODB_ENDPOINT=http://dynamodb:8000
- DYNAMODB_REGION=us-east-1
- AWS_ACCESS_KEY_ID=dummy
- AWS_SECRET_ACCESS_KEY=dummy
- LOG_LEVEL=info
depends_on:
- dynamodb
networks:
- chat-network
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/health || exit 1"]
interval: 10s
timeout: 5s
retries: 3
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
VITE_WS_URL: ws://localhost:8080/ws
VITE_API_URL: http://localhost:8080
container_name: chat-analytics-frontend
ports:
- "3000:3000"
depends_on:
- backend
networks:
- chat-network
networks:
chat-network:
driver: bridge