-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (50 loc) · 1.31 KB
/
docker-compose.yml
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
version: "3"
services:
dynamodb-local:
command: "-jar DynamoDBLocal.jar -sharedDb -inMemory"
image: "amazon/dynamodb-local:latest"
container_name: dynamodb-local
ports:
- "8000:8000"
expose:
- "8000"
bbapi:
container_name: bbapi_container
image: node:18-alpine
volumes:
- ./js/bbapi:/app
- ~/.aws:/root/.aws
- ./node_modules:/app/node_modules
environment:
- DYNAMO_ENDPOINT=http://dynamodb-local:8000
ports:
- "3001:3001"
depends_on:
- dynamodb-local
links:
- "dynamodb-local"
command: sh -c "cd /app && npm run start:dev"
live-reloader:
image: apogiatzis/livereloading
container_name: livereloader
privileged: true
environment:
- RELOAD_DELAY=1.5 # seconds
- RELOAD_CONTAINER=bbapi_container
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./js/bbapi/src:/app/src
- ./js/bbapi/serverless:/app/serverless
- ./js/bbapi/package.json:/app/package.json
- ./js/bbapi/serverless.ts:/app/serverless.ts
bbreact:
image: node:18-alpine
volumes:
- ./js/bbreact/public/app:/app
- ./node_modules:/app/node_modules
command: sh -c "cd /app && npm run start:dev"
ports:
- "3000:3000"
depends_on:
- bbapi
- dynamodb-local