-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
46 lines (42 loc) · 972 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
services:
frontend:
build:
context: .
image: contributions-web
container_name: contributions-web
restart: unless-stopped
environment:
CONTRIBUTIONS_API_URL: http://contributions-api:8080
PORT: 3000
HOST: contributions-web
networks:
- contributions-network
ports:
- "3000:3000"
backend:
build:
context: ../contributions-api
image: contributions-api
container_name: contributions-api
restart: unless-stopped
environment:
DB_URL: mongodb://mongodb:27017/top-contributors
PORT: 8080
HOST: contributions-api
networks:
- contributions-network
ports:
- "8080:8080"
mongodb:
image: mongo
container_name: mongodb
restart: unless-stopped
environment:
MONGO_INITDB_DATABASE: top-contributors
networks:
- contributions-network
ports:
- "27017:27017"
networks:
contributions-network:
driver: bridge