-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yaml
57 lines (52 loc) · 1.31 KB
/
docker-compose.yaml
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
version: "3.2"
services:
mongodb:
image: mongo
volumes:
- "./db:/data/db"
# ports:
# - 27017:27017
girder:
build:
context: ./devops/girder
privileged: true
command: -c "python3 /src/provision.py && girder mount /mnt/fuse && girder serve"
ports:
- "${GIRDER_PORT-8080}:8080"
links:
- mongodb
- memcached
volumes:
# For some versions of Docker on OSX, adding delegated speeds up file
# access. It should do no harm on other systems.
- "./assetstore:/assetstore:delegated"
- "./logs/girder:/root/.girder/logs:delegated"
- '/var/run/docker.sock:/var/run/docker.sock'
env_file:
- "./docker.env"
environment:
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
depends_on:
- "mongodb"
- "broker"
container_name: "girder"
memcached:
image: memcached
# Set the item size to bigger than our uncompressed tiles and the memory
# allocation to 4 Gb.
command: -m 256 --max-item-size 8M
broker:
image: rabbitmq:3
env_file: "./docker.env"
worker:
image: girder/girder_worker
env_file:
- "./docker.env"
links:
- girder
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
depends_on:
- broker
container_name: "worker"
user: root