Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (54 loc) · 1.96 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (54 loc) · 1.96 KB
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
# Set-up instructions
# Permissions for mounted tmpdir
# mkdir -p /tmp/scratch/tmp
# sudo chown "$USER":staff /tmp/scratch/tmp
# chmod 777 /tmp/scratch/tmp
# Run
# docker compose -f docker/docker-compose.yml up --build -d
# http://localhost/biosimdb/ # for website
# http://localhost:8080 # for traefik dashboard
# docker compose -f docker/docker-compose.yml stop # stop, keep containers
# clean restart
# docker compose -f docker/docker-compose.yml down # stop and remove containers and network
# docker compose -f docker/docker-compose.yml up --build
services:
traefik:
image: traefik:v3.7@sha256:b7b1b31e6440de0b1f7c4e0f6cf0a0f3f004866761d30c025fe00c80daaf7d9c
command:
- --log.level=DEBUG
- --accesslog=true
- --api.dashboard=true
- --api.insecure=true
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --entrypoints.web.address=:80
# - --entrypoints.web.transport.respondingTimeouts.readTimeout=60s
# - --entrypoints.web.transport.respondingTimeouts.writeTimeout=0s
# - --entrypoints.web.transport.respondingTimeouts.idleTimeout=180s
# - --serverstransport.forwardingtimeouts.dialtimeout=30s
# - --serverstransport.forwardingtimeouts.responseheadertimeout=0s
ports:
- "80:80"
- "8080:8080" # Traefik dashboard
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
biosimdb:
build:
context: ..
dockerfile: docker/Dockerfile
volumes:
- /tmp/scratch/tmp:/tmp/scratch
env_file:
- ../biosimdb_interface/.env
environment:
PORT: "5002"
UPLOAD_FOLDER: /tmp/scratch # keep in sync with the mount target
TMPDIR: /tmp/scratch
LOG_LEVEL: DEBUG
expose:
- "5002"
labels:
- traefik.enable=true
- traefik.http.routers.biosimdb.rule=Host(`localhost`)
- traefik.http.routers.biosimdb.entrypoints=web
- traefik.http.services.biosimdb.loadbalancer.server.port=5002