forked from catmaid/catmaid-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
99 lines (95 loc) · 3.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: "3.5"
services:
db:
build:
context: db
# shm_size: '2gb' # build-time
#
restart: on-failure
volumes:
- ./volumes/db/var/lib/postgresql/data:/var/lib/postgresql/data
- ./volumes/db/opt/import:/opt/import
# No time mapping is needed, we expect the database to run in UTC.
environment:
- POSTGRES_USER=catmaid
- POSTGRES_PASSWORD=catmaid_password
- POSTGRES_DB=catmaid
# By default, 50 connections are assumed.
- DB_CONNECTIONS=50
# By default, the database is only tuned on initial startup. To force a
# new tuning, set DB_FORCE_TUNE=true.
- DB_FORCE_TUNE=false
# Allow database updates
#- DB_UPDATE=false
#
# Enable initial tuning
# - DB_TUNE=true
#
# By default the available memory of the host is used for tuning the
# database. This can be overridden by setting INSTANCE_MEMORY to a custom
# value in megabytes.
#- INSTANCE_MEMORY=512
app:
image: catmaid/catmaid:stable
restart: unless-stopped
volumes:
- ./volumes/app/static:/home/django/static
- ./volumes/app/run:/var/run/catmaid:rw
- /etc/localtime:/etc/localtime:ro
environment:
# set same as db credentials and dbname
DB_HOST: db
DB_USER: catmaid
DB_PASS: catmaid_password
DB_NAME: catmaid
# Add example projects
CM_EXAMPLE_PROJECTS: "false"
# Adjust the maximum size in Bytes of imported skeletons
#CM_IMPORTED_SKELETON_FILE_MAXIMUM_SIZE: 5242880
# The IP to listen on
#CM_HOST: "0.0.0.0"
# The port to listen on
#CM_PORT: 8000
# Whether CATMAID's settings.py should be regenerated
CM_FORCE_CONFIG_UPDATE: "true"
# Where CATMAID can write data to
#CM_WRITEABLE_PATH: "/tmp"
# The maximum number of nodes to fetch in one request
#CM_NODE_LIMIT: 10000
# Which node provider to use
#CM_NODE_PROVIDERS: "['postgis2d']"
# The subdirectory relative to the external domain root, no trailing or
# leading slashes.
CM_SUBDIRECTORY: "catmaid"
# Which sources to trust for CSRF protection, typically the external
# domain, e.g. catmaid.example.com
#CM_CSRF_TRUSTED_ORIGINS: ""
# Default instance-wide client settings
#CM_CLIENT_SETTINGS: ""
# Whether or not to force setting the defined client settings, replaced
# existing entries.
#CM_FORCE_CLIENT_SETTINGS: "false"
depends_on:
- db
web:
build: web
ports:
- "8012:80"
restart: on-failure
volumes:
# This directory must have cert files
- ./volumes/web/cert:/cert:ro
- ./volumes/app/static:/static:ro
- ./volumes/app/run/:/sockets:rw
- /etc/localtime:/etc/localtime:ro
environment:
# Basic HTTP authentication can be enabled by setting the environment
# variable HTTP_AUTH_ENABLED to true and setting the environment variables
# HTTP_AUTH_USER and HTTP_AUTH_PASS to the desired values.
- HTTP_AUTH_ENABLED=false
#- HTTP_AUTH_USER=catmaid
#- HTTP_AUTH_PASS=secure_password
# CORS access, enabled by default.
- CORS_OPEN=true
depends_on:
- app