-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
91 lines (84 loc) · 2.24 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# This is primarily for development simplicity and as a recipe for proper stack
# setup, as opposed to a good production setup. Care has been taken to make it
# a solid default, but this isn't how we use the stack in production, so
# consider this a guideline more than anything else.
version: '2'
volumes:
db:
issue-cache:
sftpgo-backups:
sftpgo-home:
services:
db:
image: mariadb
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=nca
- MYSQL_USER=nca
- MYSQL_PASSWORD=nca
volumes:
- ./docker/mysql/:/etc/mysql/conf.d:Z
- db:/var/lib/mysql
iiif:
image: uolibraries/rais:4-alpine
environment:
- RAIS_IIIFBASEURL=$APP_URL
- RAIS_IIIFWEBPATH=/images/iiif
- RAIS_TILECACHELEN=250
volumes:
- /mnt/news/workflow:/var/local/images:z
expose:
- 12415
# Web runs the binary for nca's GUI
web:
build:
context: .
dockerfile: ./docker/Dockerfile-app
volumes: &ncavols
- issue-cache:/var/local/news/nca/cache
environment: &ncaenv
- NCA_WEBROOT=$APP_URL
- NCA_DB_HOST=db
- NCA_SFTP_API_URL=http://sftpgo:8080/api/v2
- NCA_SFTP_USER=admin
- NCA_SFTP_PASSWORD=password
# The redundancy here ensures we get a warning if $NCA_NEWS_WEBROOT isn't set
- NCA_NEWS_WEBROOT=$NCA_NEWS_WEBROOT
- NCA_IIIF_BASE_URL=$APP_URL/images/iiif
expose:
- 8080
depends_on:
- db
- sftpgo
- iiif
command: ./bin/server -c ./settings
sftpgo:
image: drakkan/sftpgo:v2.5-alpine
volumes:
- /mnt/news/sftp:/srv/sftpgo/data:z
- sftpgo-backups:/srv/sftpgo/backups
- sftpgo-home:/var/lib/sftpgo
expose:
- 8080
- 2022
environment:
- SFTPGO_DATA_PROVIDER__CREATE_DEFAULT_ADMIN=true
- SFTPGO_DEFAULT_ADMIN_USERNAME=admin
- SFTPGO_DEFAULT_ADMIN_PASSWORD=password
workers:
build:
context: .
dockerfile: ./docker/Dockerfile-app
volumes: *ncavols
environment: *ncaenv
depends_on:
- db
command: ./bin/run-jobs -c ./settings watchall
proxy:
image: nginx:1.15
volumes:
- ./docker/nginx/nca.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- web
- iiif
- sftpgo