-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 951 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (45 loc) · 951 Bytes
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
version: '3.8'
services:
api:
build:
context: ./api
dockerfile: Dockerfile
environment:
- MONGODB_URL=mongodb://mongodb:27017/ucWebsites
ports:
- "7776:7776"
depends_on:
- mongodb
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
environment:
- API=http://api:7776
- AUTH=http://auth:7778/users
ports:
- "7777:7777"
depends_on:
- auth
- api
auth:
build:
context: ./auth
dockerfile: Dockerfile
environment:
- MONGODB_URL=mongodb://mongodb:27017/ucWebsites
ports:
- "7778:7778"
depends_on:
- mongodb
mongodb:
image: mongo:latest
ports:
- "27017:27017"
depends_on:
- seed
seed:
image: mongo:latest
volumes:
- ./data/ucs.json:/ucs.json
command: mongoimport --host mongodb -d ucWebsites -c ucs --type json --file /ucs.json --jsonArray