-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
68 lines (64 loc) · 1.54 KB
/
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '3.1'
networks:
main:
services:
redboxportal:
build: .
image: qcifengineering/redbox-portal:latest
ports:
- "1500:1500"
volumes:
- ".:/opt/redbox-portal"
- "/mnt/data/attachments:/attachments"
- "/mnt/data/publication:/publication"
- "/opt/hooks:/opt/hooks"
expose:
- "1500"
environment:
- NODE_ENV=docker
- PORT=1500
- sails_redbox__apiKey=c8e844fc-8550-497f-b970-7900ec8741ca
- sails_record__baseUrl_redbox=http://redbox:9000/redbox
- sails_record__baseUrl_mint=http://203.101.226.160/mint
networks:
main:
aliases:
- rbportal
entrypoint: /bin/bash -c "cd /opt/redbox-portal && node app.js"
nginx:
image: nginx
ports:
- "8080:8080"
restart: always
volumes:
- "/mnt/data/publication:/usr/share/nginx/html"
- "/mnt/nginx.conf:/etc/nginx/conf.d"
expose:
- "8080"
redbox:
image: qcifengineering/redbox:2.x
expose:
- "9000"
environment:
- RB_API_KEY=c8e844fc-8550-497f-b970-7900ec8741ca
volumes:
- "/mnt/data/redbox:/opt/redbox/data"
- "/var/log/redbox:/opt/redbox/home/logs"
networks:
main:
aliases:
- redbox
ports:
- "9000:9000"
mongodb:
image: mvertes/alpine-mongo:latest
volumes:
- "./devdata:/devdata"
- "/mnt/data/mongo/data/db:/data/db"
- "/var/log/mongo:/var/log/mongo"
networks:
main:
aliases:
- mongodb
ports:
- "27017:27017"