-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (49 loc) · 1.47 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
version: "3.6"
services:
circulation-import-server:
build: ./
image: circulation-import:development
# depends_on:
# - postgres
# - es
# - cm
environment:
CM_DATABASE_USERNAME:
CM_DATABASE_PASSWORD:
CM_DATABASE_HOST:
CM_DATABASE_PORT:
CM_DATABASE_DATABASE:
SIMPLIFIED_PRODUCTION_DATABASE: postgres://${CM_DATABASE_USERNAME}:${CM_DATABASE_PASSWORD}@${CM_DATABASE_HOST}:${CM_DATABASE_PORT}/${CM_DATABASE_DATABASE}
volumes:
- type: bind
source: ./configuration
target: /circulation-import/configuration
- type: bind
source: ./reports
target: /circulation-import/reports
- type: bind
source: ./storage
target: /circulation-import/storage
- type: bind
source: ./upload
target: /circulation-import/upload
# - type: volume
# source: intermediate-repository
# target: /${CM_REPOSITORY}
command: [
"server", "monitor",
"--configuration-file", "/circulation-import/configuration/server-configuration.docker.yml",
"--logging-configuration-file", "/circulation-import/configuration/logging.yml"
]
sftp:
environment:
CURRENT_USER_UID:
CURRENT_USER_GID:
image: atmoz/sftp:alpine
ports:
- "2222:22"
command: ["publisher:secretpassword:${CURRENT_USER_UID}:${CURRENT_USER_GID}:upload"]
volumes:
- type: bind
source: ./upload
target: /home/publisher/upload