Skip to content

Commit c507771

Browse files
committed
updated compose
Signed-off-by: Tanmay Vaij <tanmayvaij22@gmail.com>
1 parent b460e6b commit c507771

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
CONTAINRX_EXPOSE_PORT=
22
# MONGO_URI= use only if running individually
33
SECRET_KEY=
4-
DOCKER_ENGINE_HOST=
4+
DOCKER_ENGINE_URL=

docker-compose.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ services:
99
- mongodb-data:/data/db
1010
restart: unless-stopped
1111

12-
containrx:
12+
containrx-server:
1313
build:
14-
context: https://github.com/shaasium/containrx.git#main
14+
context: https://github.com/shaasium/containrx-server.git#main
1515
dockerfile: Dockerfile
16-
container_name: containrx
16+
container_name: containrx-server
1717
ports:
1818
- ${CONTAINRX_EXPOSE_PORT}:${CONTAINRX_EXPOSE_PORT}
1919
environment:
2020
- CONTAINRX_EXPOSE_PORT=${CONTAINRX_EXPOSE_PORT}
2121
- MONGO_URI=mongodb://mongodb:27017/containrx
2222
- SECRET_KEY=${SECRET_KEY}
23-
- DOCKER_ENGINE_HOST=${DOCKER_ENGINE_HOST}
23+
- DOCKER_ENGINE_URL=${DOCKER_ENGINE_URL}
2424
depends_on:
2525
- mongodb
2626
restart: unless-stopped
@@ -30,12 +30,12 @@ services:
3030
context: https://github.com/shaasium/containrx-dashboard.git#main
3131
dockerfile: Dockerfile
3232
args:
33-
- NEXT_PUBLIC_BACKEND_URL=http://containrx:${CONTAINRX_EXPOSE_PORT}
33+
- NEXT_PUBLIC_BACKEND_URL=http://localhost:${CONTAINRX_EXPOSE_PORT}
3434
container_name: containrx-dashboard
3535
ports:
3636
- 3000:3000
3737
depends_on:
38-
- containrx
38+
- containrx-server
3939
restart: unless-stopped
4040

4141
volumes:

src/configs/dockerApi.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Docker from "dockerode";
22

33
export const dockerApi = new Docker({
4-
host: process.env.DOCKER_ENGINE_HOST,
5-
port: "2375",
4+
host: process.env.DOCKER_ENGINE_URL,
65
});

0 commit comments

Comments
 (0)