forked from nsidc/qgreenland
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (61 loc) · 1.88 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
version: '3.4'
services:
# Luigi runs as a service and must have jobs submitted to it
# (`scripts/run.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
# Input (private) storage
- ./data/private-archive:/private-archive:ro
# Read-write storage
- ./data/working-storage:/working-storage:rw
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 hosting
webserver:
image: nsidc/nginx:local
build: ./nginx
container_name: webserver
volumes:
# HACK: The ./data symbolic links are messed up to work around an issue
# with NFS storage.
# Old:
# - ./data/working-storage/release-layers:/usr/share/nginx/html/layers:ro
# - ./data/working-storage/release-packages:/usr/share/nginx/html/packages:ro
# New/hack:
- /share/appdata/qgreenland/working-storage/release-layers:/usr/share/nginx/html/layers:ro
- /share/appdata/qgreenland/working-storage/release-packages:/usr/share/nginx/html/packages:ro
# END HACK
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./data/logs:/logs:rw
ports:
- 80:80
- 443:443
logging:
options:
max-size: "20m"
max-file: "5"
restart: on-failure