forked from nsidc/qgreenland
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (53 loc) · 1.49 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
version: '3'
services:
# Luigi runs as a service and must have jobs submitted to it
# (`scripts/run_task.sh`)
luigi:
image: nsidc/luigi:dev
build: .
container_name: luigi
volumes:
# Code
- ./:/luigi/tasks/qgreenland:ro
# Luigi artifacts
- ./luigi/conf:/etc/luigi:ro
- ./luigi/state:/luigi/state:rw
# Data
- /share/appdata/qgreenland:/luigi/data:rw
- /share/appdata/qgreenland-input-cache:/input:rw
- /share/appdata/qgreenland-private-archive:/private-archive/:ro
environment:
- LUIGI_CONFIG_PARSER=toml
- ENVIRONMENT
- EARTHDATA_USERNAME
- EARTHDATA_PASSWORD
# Set `export PYTHONBREAKPOINT=ipdb.set_trace` to use `ipdb` by default
# instead of `pdb`.
- PYTHONBREAKPOINT
# Needed to properly initialize QGIS Python library without a display
- QT_QPA_PLATFORM=minimal
ports:
- 8082:8082
logging:
options:
max-size: "20m"
max-file: "5"
restart: on-failure
# QGreenland package hosting
webserver:
image: nsidc/nginx:local
build: ./nginx
container_name: webserver
volumes:
- /share/appdata/qgreenland/release/:/usr/share/nginx/html/:ro
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- /share/logs/qgreenland:/logs:rw
ports:
- 80:80
- 443:443
logging:
options:
max-size: "20m"
max-file: "5"
restart: on-failure