-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yaml
51 lines (47 loc) · 853 Bytes
/
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
version: '3.9'
#services
services:
# Server services
server:
build:
context: ./backend
dockerfile: Dockerfile
image: xfintern-server
container_name: xfintern_backend
volumes:
- ./:/server
ports:
- "9009:9009"
env_file: ./backend/config.env
depends_on:
- mongodb
networks:
- mynetwork
# Frontend Services
client:
build:
context: ./frontend
dockerfile: Dockerfile
image: xfintern-client
container_name: xfintern_frontend
ports:
- "5173:5173"
depends_on:
- server
volumes:
- ./:/client
networks:
- mynetwork
# Mongodb Services
mongodb:
image: mongo:latest
volumes:
- mongodb:/data/db
networks:
- mynetwork
ports:
- "27017:27017"
volumes:
mongodb:
networks:
mynetwork: