-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (56 loc) · 1.01 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
54
55
56
57
58
59
60
61
version: '3.8'
services:
db:
container_name: mongodb
image: mongo:latest
ports:
- '27017:27017'
cache:
stop_grace_period: 1s
container_name: redis
image: redis:7-alpine
restart: unless-stopped
volumes:
- 'annotator_cache:/data'
expose:
- 6379
command: ['redis-server', '--loglevel', 'warning']
ports:
- '6379:6379'
api:
container_name: api
network_mode: 'host'
build:
context: ./backend
dockerfile: Dockerfile
env_file:
- ./.env
depends_on:
- db
- cache
working_dir: /app
volumes:
- ./backend:/app
command: sh -c "cargo watch -x run"
expose:
- 8080
ports:
- '8080:8080'
app:
container_name: webapp
build:
context: ./frontend
dockerfile: Dockerfile
env_file:
- ./.env
working_dir: /app
volumes:
- ./frontend:/app
depends_on:
- api
expose:
- 5173
ports:
- '5173:5173'
volumes:
annotator_cache: