forked from ml-evs/odbx.science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
95 lines (86 loc) · 2.03 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
89
90
91
92
93
94
95
version: '3'
services:
nginx:
restart: always
build:
context: .
dockerfile: .docker/nginx_Dockerfile
ports:
- '8080:80'
- '443:443'
volumes:
- sockets:/tmp/
- ./odbx/static:/app/static
- ./logs:/var/log/nginx
- ~/keys:/keys/
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
odbx:
restart: always
build:
context: .
dockerfile: .docker/odbx_Dockerfile
environment:
MAIN: main
OPTIMADE_CONFIG_FILE: /app/optimade_config.json
depends_on:
- mongo
volumes:
- sockets:/tmp/
- ./odbx/static:/app/static/
- ./logs:/app/logs/
odbx_rest:
restart: always
build:
context: .
dockerfile: .docker/odbx_rest_Dockerfile
environment:
MAIN: main
OPTIMADE_CONFIG_FILE: /app/optimade_config.json
depends_on:
- mongo
volumes:
- sockets:/tmp/
- ./logs:/app/logs/
odbx_rest_test:
restart: always
build:
context: .
dockerfile: .docker/odbx_rest_test_Dockerfile
environment:
MAIN: main
OPTIMADE_CONFIG_FILE: /app/optimade_test_config.json
depends_on:
- mongo
volumes:
- sockets:/tmp/
- ./logs:/app/logs/
- /data/structure_repository/:/data/
odbx_index:
restart: always
build:
context: .
dockerfile: .docker/odbx_index_Dockerfile
environment:
OPTIMADE_CONFIG_FILE: /app/optimade_index_config.json
volumes:
- sockets:/tmp/
- ./logs:/app/logs/
mongo:
restart: always
build:
context: .
dockerfile: .docker/mongo_Dockerfile
command: ["mongod", "-f", "/etc/mongod.conf"]
volumes:
- sockets:/tmp/
- ./logs:/var/logs/mongod/
- /data/db/mongo:/data/db
certbot:
image: certbot/certbot
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 24h & wait $${!}; done;'"
volumes:
sockets: