-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (49 loc) · 991 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
54
version: '3.9'
services:
frontend:
build:
context: ./app-ui/
dockerfile: Dockerfile
hostname: frontend-cont
container_name: frontend-cont
networks:
- educast
backend:
build:
context: ./backend/
dockerfile: Dockerfile
hostname: backend-cont
container_name: backend-cont
environment:
MONGO_URI: mongodb://root:example@mongo-db:27017
depends_on:
- mongodb
networks:
- educast
mongodb:
image: mongo
hostname: mongo-db
container_name: mongo-db
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
networks:
- educast
nginx:
build:
context: ./nginx/
dockerfile: Dockerfile
hostname: nginx
container_name: nginx
restart: always
depends_on:
- backend
- frontend
ports:
- "8081:80"
networks:
- educast
networks:
educast:
driver: bridge