-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
72 lines (69 loc) · 2.19 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
version: '3.7'
services:
xnat-web:
image: somnonetz/snet-xnat
container_name: xnat-web
environment:
CATALINA_OPTS: -Xms${XNAT_MIN_HEAP} -Xmx${XNAT_MAX_HEAP} -Dxnat.home=${XNAT_HOME}
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}
PGPASSWORD: ${XNAT_DATASOURCE_PASSWORD}
XNAT_ROOT: ${XNAT_ROOT}
XNAT_HOME: ${XNAT_HOME}
XNAT_EMAIL: ${XNAT_EMAIL}
XNAT_API_URL: ${XNAT_API_URL}
VIRTUAL_HOST: ${XNAT_HOST}
VIRTUAL_PORT: 8080
expose:
- "8080"
ports:
- "8104:8104"
volumes:
- ./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
# - ../copla-editor/sn-editor/build:/usr/local/tomcat/webapps/sn-editor
# - ../snet-plugin/build/libs/snet-plugin-0.1.9.jar:/data/xnat/home/plugins/snet-plugin-0.1.9.jar
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- xnat-db
networks:
- snet-apps
xnat-db:
image: postgres:12.7-alpine
container_name: xnat-db
environment:
POSTGRES_USER: ${XNAT_DATASOURCE_USERNAME}
POSTGRES_PASSWORD: ${XNAT_DATASOURCE_PASSWORD}
POSTGRES_DB: ${XNAT_DATASOURCE_DBNAME}
expose:
- "5432"
volumes:
- ./postgres-data:/var/lib/postgresql/data
networks:
- snet-apps
nginx-proxy:
image: nginxproxy/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
volumes:
- ./nginx-proxy.conf:/etc/nginx/proxy.conf
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- snet-apps
networks:
snet-apps:
driver: bridge
name: snet-apps