-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (41 loc) · 1.13 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
version: '3'
services:
dynamodb-local:
image: amazon/dynamodb-local
container_name: dynamodb-local
ports:
- '8000:8000'
volumes:
- './data:/home/dynamodblocal/data'
command: '-jar DynamoDBLocal.jar -sharedDb -dbPath /home/dynamodblocal/data'
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: backend
ports:
- '4000:4000'
volumes:
- ./backend:/usr/src/app
# - /usr/src/app/node_modules
environment:
- NODE_ENV=development
- RUNNING_IN_DOCKER=true
# command: pnpm run start:dev
depends_on:
- dynamodb-local
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: frontend
ports:
- '3000:80'
volumes:
- ./frontend:/usr/src/app
# - /usr/src/app/node_modules
environment:
- NODE_ENV=development
# command: pnpm run start:dev
depends_on:
- backend