-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
65 lines (59 loc) · 1.51 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
version: "3"
services:
traefik:
image: traefik:2.2
restart: always
command:
--api.insecure=true
--providers.docker
--entryPoints.web.address=:80
--log.level=DEBUG
ports:
# The HTTP port
- "80:80"
# The HTTPS port
- "443:443"
# The Web UI enabled by --api.insecure=true
- "8080:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
# Dont expose ports - no auth
# Enable persistent data
redis:
image: redis
restart: always
volumes:
- "./docker_volumes/redis:/data"
command: ["redis-server", "--appendonly", "yes"]
cy:
image: jvansan/cytoscape-desktop-headless:latest
restart: always
volumes:
- "./data:/root/data"
app:
image: ghcr.io/liningtonlab/snapms:latest
build:
context: .
dockerfile: Dockerfile
restart: always
environment:
- REDIS_URI=redis://redis:6379/0
- CYTOSCAPE_BASEURL=http://cy:1234/v1
volumes:
- "./db:/usr/src/app/db"
- "./data:/usr/src/app/data"
labels:
- traefik.http.routers.snapms.rule=PathPrefix(`/`)
worker:
image: ghcr.io/liningtonlab/snapms:latest
restart: always
depends_on:
- redis
environment:
- REDIS_URI=redis://redis:6379/0
- CYTOSCAPE_BASEURL=http://cy:1234/v1
volumes:
- "./db:/usr/src/app/db"
- "./data:/usr/src/app/data"
command: ["python", "manage.py", "rqworker", "high", "default"]