-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
42 lines (38 loc) · 859 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
version: '3.8'
services:
frontend:
container_name: 'translation-app-frontend'
build:
context: .
dockerfile: Dockerfile.frontend
ports:
- "3000:3000"
depends_on:
- backend
volumes:
- ./Frontend/:/translation-app-frontend/
command: yarn dev
network_mode: "host"
backend:
container_name: 'translation-app-backend'
build:
context: .
dockerfile: Dockerfile.backend
command: bash /translation-app-backend/Backend/setup.sh
ports:
- 8000:8000
env_file:
- ./.env
volumes:
- .:/translation-app-backend
network_mode: "host"
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: [ '0' ]
capabilities: [ gpu ]
# networks:
# general-network:
# driver: bridge