-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
53 lines (48 loc) · 938 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
43
44
45
46
47
48
49
50
51
52
53
version: "3"
services:
mongodb:
image: mongo:latest
container_name: "mongodb"
networks:
- sliit-docker
ports:
- 21017:21017
restart: always
volumes:
- mongodb:/data/db
- mongodb_config:/data/configdb
backend:
image: springboot-studentservice:1.0
container_name: springboot-studentservice
build:
context: ./backend
dockerfile: ./dockerfile
ports:
- 8080:8080
volumes:
- ./backend:/app
networks:
- sliit-docker
links:
- mongodb
frontend:
image: sliit-docker-client-app:v1.0
build:
context: ./frontend
dockerfile: ./Dockerfile
ports:
- 3000:3000
volumes:
- ./frontend:/app
networks:
- sliit-docker
depends_on:
- backend
environment:
- CHOKIDAR_USEPOLLING=true
networks:
sliit-docker:
driver: bridge
volumes:
mongodb:
mongodb_config: