-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.traeffik.yaml.example
More file actions
65 lines (62 loc) · 1.57 KB
/
compose.traeffik.yaml.example
File metadata and controls
65 lines (62 loc) · 1.57 KB
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
services:
mongo:
image: mongo:6.0
restart: always
mem_limit: 64gb
volumes:
- ./mongo-data:/data/db
- ./mongo-tools:/tools
logging:
driver: 'json-file'
options:
max-size: '50m'
import:
build: ./docker
restart: always
privileged: true
deploy:
resources:
limits:
cpus: '12'
memory: 32G
depends_on:
- mongo
volumes:
- ./originalData:/originalData
ulimits:
core: 0
logging:
driver: 'json-file'
options:
max-size: '50m'
environment:
- MONGODB_URL=mongodb://mongo:27017
- ORIGINAL_DATA_PATH=/originalData
command: npm run cron
octochemdb:
build: ./docker
restart: always
mem_limit: 32gb
environment:
- MONGODB_URL=mongodb://mongo:27017
depends_on:
- mongo
logging:
driver: 'json-file'
options:
max-size: '50m'
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.octochemdb.rule=Host(`octochemdb.cheminfo.org`)'
- 'traefik.http.routers.octochemdb.entrypoints=websecure'
- 'traefik.http.routers.octochemdb.middlewares=octochemdb'
- 'traefik.http.routers.octochemdb.tls.certresolver=letsencrypt'
- 'traefik.http.middlewares.octochemdb.headers.accesscontrolalloworiginlist=*'
- 'traefik.http.middlewares.octochemdb.headers.accesscontrolallowheaders=Content-Type'
- 'traefik.http.middlewares.octochemdb.headers.accesscontrolmaxage=86400'
networks:
- default
- traefik
networks:
traefik:
external: true