-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
129 lines (119 loc) · 3.39 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
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
version: '3'
services:
local_reverse-proxy:
# The official v2 Traefik docker image
image: traefik:v2.8
# Enables the web UI and tells Traefik to listen to docker
container_name: local_reverse_proxy
command:
- --api.insecure=true
- --api.dashboard=true
- --api.debug=true
- --providers.docker
- --entrypoints.web.address=:80
ports:
# The HTTP port
- "80:80"
# 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
networks:
- local-web
- local-db
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.service=api@internal"
descriptor_database:
image: 'rdkit-postgres:latest'
container_name: descriptor_database
build:
context: ./database
dockerfile: Dockerfile
shm_size: '4gb'
environment:
POSTGRES_SERVER: database
POSTGRES_USER: postgres
ports:
- "5432:5432"
volumes:
- "postgres16:/var/lib/postgresql/data"
healthcheck:
test: ["CMD-SHELL", "psql -U postgres -d kraken_data -c 'SELECT molecule_id FROM molecule LIMIT 1;' || exit 1"]
interval: 5s
timeout: 2s
retries: 5
networks:
- local-db
descriptor_backend:
image: 'descriptor-backend:latest'
container_name: kraken_backend
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- "./backend/app:/app"
environment:
POSTGRES_SERVER: descriptor_database
POSTGRES_USER: postgres
POSTGRES_DB: kraken_data
API_PREFIX: kraken
entrypoint: bash prestart.sh
depends_on:
descriptor_database:
condition: service_healthy
networks:
- local-web
- local-db
labels:
- "traefik.enable=true"
- "traefik.http.routers.kraken_backend.rule=Host(`localhost`) && PathPrefix(`/api/kraken`)"
- "traefik.http.services.kraken_backend.loadbalancer.server.port=8080"
local_cdk-depict:
image: 'simolecule/cdkdepict:latest'
container_name: local_cdk-depcit
networks:
- local-web
labels:
- "traefik.enable=true"
- "traefik.http.routers.cdk-depict.rule=Host(`localhost`) && PathPrefix(`/depict`)"
descriptor_frontend:
image: 'descriptor-frontend:latest'
container_name: kraken_frontend
volumes:
- "./frontend/src:/app/src"
- "./frontend/public:/app/public"
environment:
- VITE_BASE_URL=/descriptor
build:
context: .
dockerfile: frontend.development.dockerfile
networks:
- local-web
entrypoint: npm run start
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend.rule=Host(`localhost`) && PathPrefix(`/descriptor`)"
- "traefik.http.services.frontend.loadbalancer.server.port=3000"
local_documentation:
image: "phosphines-docs:latest"
container_name: local_documentation
build:
context: ./docs
dockerfile: docs.dockerfile
entrypoint: bash start.sh
volumes:
- "./docs:/docs"
networks:
- local-web
labels:
- "traefik.enable=true"
- "traefik.http.routers.documentation.rule=Host(`localhost`) && PathPrefix(`/docs`)"
- "traefik.http.services.documentation.loadbalancer.server.port=5000"
networks:
local-web:
local-db:
volumes:
postgres16:
external: true