-
Notifications
You must be signed in to change notification settings - Fork 86
/
docker-compose.yml
64 lines (61 loc) · 1.93 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
version: '3.7'
services:
xnat-web:
build:
context: ./xnat
args:
XNAT_VERSION: ${XNAT_VERSION}
XNAT_SMTP_ENABLED: ${XNAT_SMTP_ENABLED}
XNAT_SMTP_HOSTNAME: ${XNAT_SMTP_HOSTNAME}
XNAT_SMTP_PORT: ${XNAT_SMTP_PORT}
XNAT_SMTP_AUTH: ${XNAT_SMTP_AUTH}
XNAT_SMTP_USERNAME: ${XNAT_SMTP_USERNAME}
XNAT_SMTP_PASSWORD: ${XNAT_SMTP_PASSWORD}
XNAT_DATASOURCE_DRIVER: ${XNAT_DATASOURCE_DRIVER}
XNAT_DATASOURCE_URL: ${XNAT_DATASOURCE_URL}
XNAT_DATASOURCE_USERNAME: ${XNAT_DATASOURCE_USERNAME}
XNAT_DATASOURCE_PASSWORD: ${XNAT_DATASOURCE_PASSWORD}
TOMCAT_XNAT_FOLDER: ${TOMCAT_XNAT_FOLDER}
XNAT_ROOT: ${XNAT_ROOT}
XNAT_HOME: ${XNAT_HOME}
XNAT_EMAIL: ${XNAT_EMAIL}
ports:
- 8104:8104
volumes:
- ./xnat/plugins:${XNAT_HOME}/plugins
- ./xnat-data/home/logs:${XNAT_HOME}/logs
- ./xnat-data/archive:${XNAT_ROOT}/archive
- ./xnat-data/build:${XNAT_ROOT}/build
- ./xnat-data/cache:${XNAT_ROOT}/cache
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- xnat-db
environment:
- CATALINA_OPTS=-Xms${XNAT_MIN_HEAP} -Xmx${XNAT_MAX_HEAP} -Dxnat.home=${XNAT_HOME}
- XNAT_HOME=${XNAT_HOME}
xnat-db:
image: postgres:${PG_VERSION}
expose:
- "5432"
volumes:
- ./postgres-data:/var/lib/postgresql/data
#
- ./postgres:/docker-entrypoint-initdb.d
environment:
- POSTGRES_PASSWORD=${XNAT_DATASOURCE_ADMIN_PASSWORD}
- POSTGRES_DB=${XNAT_DATASOURCE_NAME}
# variables for the sql script
- XNAT_DATASOURCE_USERNAME=${XNAT_DATASOURCE_USERNAME}
- XNAT_DATASOURCE_PASSWORD=${XNAT_DATASOURCE_PASSWORD}
xnat-nginx:
image: nginx:${NGINX_VERSION}
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- "80:80"
expose:
- "80"
depends_on:
- xnat-web
links:
- xnat-web