This repository has been archived by the owner on Oct 3, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
88 lines (85 loc) · 2.18 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: "3"
services:
web:
image: fulton/ara
expose:
- 8080
environment:
dblink: mongo:27017
dbname: ara
dbpassword: thepassword
PORT: 8080
BING: 92a4005e9ce94f8ea70bf62a3bd42bd9
NLP: nlp:5000
depends_on:
- mongo
- nlp
mongo:
image: mongo:latest
container_name: mongo
volumes:
- test2-volume:/data/db
mongoClientTemp:
image: mongo:latest
container_name: mongoClientTemp
links:
- mongo:mongo
volumes:
- ./init-skills.js:/data/mongostartup/init-skills.js
command: mongo --host mongo < /data/mongostartup/init-skills.js
depends_on:
- mongo
nlp:
image: fulton/ara-nlp
expose:
- 5000
ports:
- 5000:5000
nginx:
restart: unless-stopped
image: nginx:latest
environment:
WEB_SERVER_NAME: ${DOMAIN}
ports:
- 80:80
- 443:443
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./keys/conf:/etc/letsencrypt
- ./keys/certbot/www:/var/www/certbot
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
depends_on:
- web
certbot:
image: certbot/certbot
restart: unless-stopped
volumes:
- ./keys/conf:/etc/letsencrypt
- ./keys/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
postgres:
image: postgres
volumes:
- postgres_data4:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
keycloak:
image: jboss/keycloak:10.0.0
environment:
DB_VENDOR: POSTGRES
DB_ADDR: postgres
DB_DATABASE: keycloak
DB_USER: keycloak
DB_PASSWORD: password
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: ${KEYCLOAK_PASSWORD}
ports:
- 8080:8080
depends_on:
- postgres
volumes:
test2-volume:
production-volume:
postgres_data4: