-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
48 lines (47 loc) · 940 Bytes
/
docker-compose.yaml
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
version: "3.9"
services:
cockroach:
container_name: cockroach
hostname: cockroach
networks:
- backend
image: cockroachdb/cockroach
command: start-single-node --insecure
restart: always
volumes:
- ./cockroach-data:/cockroach/cockroach-data
ports:
- "26257:26257"
- "8080:8080"
redis:
container_name: redis
hostname: redis
networks:
- backend
image: redis
ports:
- "6379:6379"
filestorage:
container_name: filestorage
hostname: filestorage
image: filestorage
networks:
- backend
ports:
- "8000:8000"
environment:
- DB_HOST=cockroach
- DB_NAME=defaultdb
- CACHE_HOST=redis
restart: always
frontend:
container_name: frontend
hostname: frontend
image: filestorage-frontend
networks:
- backend
ports:
- "3000:3000"
networks:
backend:
driver: bridge