-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
134 lines (126 loc) · 3.22 KB
/
docker-compose.yml
File metadata and controls
134 lines (126 loc) · 3.22 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
name: bioid
services:
redis:
image: redis:6-alpine
restart: unless-stopped
ports:
- "6379:6379"
api:
build:
context: .
dockerfile: Dockerfile.api
# image: cerit.io/ceitec-biodata-pub/gromacs-metadump-api:latest
restart: unless-stopped
user: "1000:1000"
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- DATA_FOLDER=/app/data
- CLEANUP_DAYS=30
- PREFERRED_URL_SCHEME="http"
- TZ=Europe/Prague
- DATABASE_URI=postgresql://postgres:postgres@postgres:5432/gmxmetadump
ports:
- "5000:5000"
volumes:
- annotation_data:/app/data
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.rule=Host(`localhost`) && PathPrefix(`/api`)"
- "traefik.http.routers.api.entrypoints=web"
depends_on:
- traefik
- redis
- postgres
- worker
worker:
build:
context: .
dockerfile: Dockerfile.worker
# image: cerit.io/ceitec-biodata-pub/gromacs-metadump-worker:latest
restart: unless-stopped
user: "1000:1000"
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- DATA_FOLDER=/app/data
- CLEANUP_DAYS=30
- PREFERRED_URL_SCHEME="http"
- TZ=Europe/Prague
- DATABASE_URI=postgresql://postgres:postgres@postgres:5432/gmxmetadump
volumes:
- annotation_data:/app/data
labels:
- "traefik.enable=false"
depends_on:
- redis
- postgres
web:
build:
context: .
dockerfile: Dockerfile.web
target: dev
restart: unless-stopped
command: npm run dev
working_dir: /usr/src/app
ports:
- "8081:8081"
depends_on:
- traefik
- api
labels:
- "traefik.enable=true"
- "traefik.http.routers.web.rule=Host(`localhost`)"
- "traefik.http.routers.web.entrypoints=web"
- "traefik.http.services.web.loadbalancer.server.port=8081"
develop:
watch:
- path: ./web
action: sync
target: /usr/src/app
ignore:
- node_modules
- .git
- .vscode
- .idea
- dist
- path: ./web/package.json
action: rebuild
traefik:
image: traefik:v2.10
restart: unless-stopped
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
postgres:
image: postgres:15-alpine
restart: unless-stopped
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=gmxmetadump
volumes:
- database_data:/var/lib/postgresql/data
ports:
- "5432:5432"
adminer:
image: adminer:5.3.0
restart: unless-stopped
ports:
- "8080:8080"
environment:
- ADMINER_DEFAULT_SERVER=postgres
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.rule=Host(`localhost`) && PathPrefix(`/adminer`)"
- "traefik.http.routers.traefik.entrypoints=web"
depends_on:
- postgres
volumes:
annotation_data:
database_data: