-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
55 lines (51 loc) · 976 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
49
50
51
52
53
54
55
version: "3.8"
services:
mongodb:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- ./mongodb-data:/data/db
restart: always
networks:
- socioverse_network
redis:
image: redis:latest
ports:
- "6379:6379"
volumes:
- ./redis-data:/data
restart: always
networks:
- socioverse_network
server:
build:
context: ./server
dockerfile: Dockerfile
image: adwaithathman/socioverse-server:v1.0
ports:
- "8000:8000"
env_file:
- ./server/.env
depends_on:
- mongodb
- redis
networks:
- socioverse_network
restart: always
client:
build:
context: ./client
dockerfile: Dockerfile
image: adwaithathman/socioverse-client:v1.0
ports:
- "5173:5173"
env_file:
- ./client/.env
depends_on:
- server
networks:
- socioverse_network
networks:
socioverse_network:
driver: bridge