-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 1017 Bytes
/
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
services:
dynamodb-local:
command: "-jar DynamoDBLocal.jar -sharedDb -dbPath ./data"
image: "amazon/dynamodb-local:latest"
container_name: dynamodb-local
ports:
- "8000:8000"
volumes:
- "./docker/dynamodb:/home/dynamodblocal/data"
networks:
- internal
working_dir: /home/dynamodblocal
backend:
container_name: backend-app
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "5000:5000"
env_file:
- ./backend/.env
depends_on:
- dynamodb-local
networks:
- internal
- external
restart: on-failure
frontend:
container_name: frontend-app
build:
context: ./frontend
dockerfile: Dockerfile
environment:
- VITE_API_URL=http://localhost:5000
ports:
- "3000:80"
depends_on:
- backend
restart: on-failure
networks:
- external
networks:
internal:
driver: bridge
internal: true
external:
driver: bridge