-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
40 lines (36 loc) · 1.31 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
version: "3.8"
services:
postgres:
image: postgres:15
env_file:
- ./config/.env.backend
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
backend:
image: tokamaknetwork/trh-backend:latest
ports:
- "8000:8000"
env_file:
- ./config/.env.backend
depends_on:
- postgres
restart: unless-stopped
volumes:
- trh_backend_storage:/app/storage
- /var/run/docker.sock:/var/run/docker.sock
entrypoint: ["/bin/sh", "-c", "ARCH=$$(uname -m); if ! command -v docker > /dev/null 2>&1; then curl -fsSL https://download.docker.com/linux/static/stable/$${ARCH}/docker-27.5.1.tgz | tar -xz -C /usr/local/bin --strip-components=1 docker/docker; fi; if ! docker compose version > /dev/null 2>&1; then mkdir -p /usr/local/lib/docker/cli-plugins && curl -fsSL https://github.com/docker/compose/releases/download/v2.32.4/docker-compose-linux-$${ARCH} -o /usr/local/lib/docker/cli-plugins/docker-compose && chmod +x /usr/local/lib/docker/cli-plugins/docker-compose; fi && exec ./main"]
ui:
image: tokamaknetwork/trh-platform-ui:latest
ports:
- "3000:3000"
env_file:
- ./config/.env.frontend
depends_on:
- backend
restart: unless-stopped
volumes:
postgres_data:
trh_backend_storage:
external: true