-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.override-hybrid-example.yml
72 lines (65 loc) · 2.13 KB
/
compose.override-hybrid-example.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
# This is an example of overriding the core docker setup for a hybrid dev
# stack, where NCA services are running locally, but all non-NCA services run
# in containers.
#
# Copy this to `compose.override.yml` and tweak it however you need for your
# dev environment. You'll need to adjust your NCA settings file to use the
# local workflow directories, set up the IIIF and ONI URLs, etc.
services:
# Mount the local workflow dir and expose RAIS directly to the host
iiif:
volumes:
- ./test/fakemount:/var/local:z
environment:
- RAIS_IIIFBASEURL=http://localhost:12415
ports:
- 12415:12415
# Expose the database so your local NCA can connect
db:
ports:
- 3306:3306
# Set up sftpgo to use the fake mountpoint and be web-accessible via port
# 8081 for administrative use, and port 2022 for sftp.
sftpgo:
volumes:
- ./test/fakemount/sftp:/srv/sftpgo/data:z
ports:
- 8081:8080
- 2022:2022
# Expose port 2223 to the ssh agent (staging) for local testing
oni-agent-staging:
volumes:
- ./test/fakemount/production-batches:/mnt/batches:z
ports:
- 2223:22
# Expose port 2222 to the ssh agent (production) for local testing
oni-agent-prod:
volumes:
- ./test/fakemount/production-batches:/mnt/batches:z
ports:
- 2222:22
oni-iiif:
environment:
- RAIS_IIIFBASEURL=http://localhost:8080
volumes:
- ./test/fakemount/production-batches:/mnt/batches:z
# ONI staging is exposed on 8082
oni-staging:
environment:
- ONI_BASE_URL=http://localhost:8082
- ONI_IIIF_URL=http://localhost:8080/images/iiif
volumes:
- ./test/fakemount/production-batches:/mnt/batches:z
ports:
- 8082:80
# Open ONI (prod) is exposed on port 8080. If you change this port, you need
# to change 8080 throughout this override file: oni-iiif and the NCA web
# service both need to know the public URL.
oni-prod:
environment:
- ONI_BASE_URL=http://localhost:8080
- ONI_IIIF_URL=http://localhost:8080/images/iiif
volumes:
- ./test/fakemount/production-batches:/mnt/batches:z
ports:
- 8080:80