-
Notifications
You must be signed in to change notification settings - Fork 60
/
docker-compose.yaml
73 lines (67 loc) · 1.69 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
64
65
66
67
68
69
70
71
72
73
services:
dynamodb:
build:
context: .
dockerfile: Dockerfile.dynamodb
hostname: dynamodb-local
container_name: rocketnotes-dynamodb
command: -jar DynamoDBLocal.jar -sharedDb -dbPath /home/dynamodblocal/data/
ports:
- "8041:8000"
volumes:
- dynamodb-volume:/home/dynamodblocal/data
networks:
- local-serverless-network
s3:
image: adobe/s3mock:latest
container_name: rocketnotes-s3
environment:
- initialBuckets=faissIndexBucket
ports:
- 9091:9090
volumes:
- s3-volume:/home/data
networks:
- local-serverless-network
api:
image: fynnfluegge/rocketnotes-api:latest
command:
bash -c "sam local start-api --host 0.0.0.0 --container-host host.docker.internal --port 3002 --docker-volume-basedir ${PWD}/.aws-sam/build --debug
--docker-network rocketnotes_local-serverless-network"
container_name: rocketnotes-api
mem_limit: "8g"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${PWD}:${PWD}:ro
platform: linux/amd64
ports:
- "3002:3002"
webapp:
image: fynnfluegge/rocketnotes-webapp:latest
container_name: rocketnotes-webapp
platform: linux/amd64
ports:
- "3001:3001"
environment:
API_URL: "http://localhost:3002"
ollama:
image: ollama/ollama:latest
ports:
- 11434:11434
volumes:
- .:/code
- ./ollama/ollama:/root/.ollama
container_name: ollama
pull_policy: always
tty: true
restart: always
networks:
- local-serverless-network
volumes:
dynamodb-volume:
driver: local
s3-volume:
driver: local
networks:
local-serverless-network:
driver: "bridge"