-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.override.yml-example
53 lines (49 loc) · 1.83 KB
/
docker-compose.override.yml-example
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
# This is an example of overriding the core docker setup. Copy this to
# `docker-compose.override.yml` and tweak it however you need for your dev
# environment.
version: '2'
services:
iiif:
# Homedir workflow directories require a hack to IIIF's image location
volumes:
- ./test/fakemount/workflow:/var/local/images:z
# Workers needs all workflow directories
workers:
volumes:
# Workflow directories
- ./test/fakemount:/mnt/news:z
# Entrypoint
- ./docker/entrypoint.sh:/entrypoint.sh
# Mount in the binaries, templates, and static files for easier debugging
- ./static:/usr/local/nca/static:z
- ./templates:/usr/local/nca/templates:z
- ./settings-example:/usr/local/nca/settings:z
# For development you may not want this "hidden" in a docker volume
- ./tmp/cache:/var/local/news/nca/cache
web:
volumes:
# Workflow directories
- ./test/fakemount:/mnt/news:z
# Entrypoint
- ./docker/entrypoint.sh:/entrypoint.sh
# Mount in the binaries, templates, and static files for easier debugging
- ./static:/usr/local/nca/static:z
- ./templates:/usr/local/nca/templates:z
- ./settings-example:/usr/local/nca/settings:z
# Make sure the server always runs in debug mode
command: ./bin/server -c ./settings --debug
# Set up sftpgo to use the fake mountpoint and be web-accessible via port
# 8080 for administrative use. Port 2022 is the sftp port - in a production
# environment you might want to map this to 22 and set your server's ssh port
# to a nonstandard option so that end users can sftp using their client's
# default settings.
sftpgo:
volumes:
- ./test/fakemount/sftp:/srv/sftpgo/data:z
ports:
- 8080:8080
- 2022:2022
# Expose port 80 to the host's port 80
proxy:
ports:
- 80:80