This repository contains the Docker setup for the Akimbo Admin service. This application is designed to run within a Docker stack that connects with multiple services.
- Docker and Docker Compose installed on your machine.
- A Running server installation of mydu.
First, download the /akimboadmin/db/
folder from the repository and place it in your server installation folder. This folder contains the initial SQLite database configuration required for the application.
Add the following content to the server installation docker-compose.yml
file:
akimbo-admin:
image: jimboakimbo/mydu-akimboadmin:latest
ports:
- '3010:3000'
environment:
NODE_ENV: production
PG_USER: "postgres"
PG_PASSWORD: "postgres"
PG_HOST: "10.5.0.9" # The static IP address of the postgres container
PG_PORT: "5432"
PG_DATABASE: "dual" # Replace with your actual database name
ADMIN_EMAIL: "EDIT THIS"
ADMIN_PASSWORD: "EDIT THIS"
command: npm start
volumes:
- ./akimboadmin/db:/app/prisma
networks:
vpcbr:
ipv4_address: 10.5.0.212
REPLACE "EDIT THIS" WITH EMAIL AND PASSWORD !!
Note: Ensure that the indentation matches the existing services.
To start the Akimbo Admin service, navigate to the directory containing your docker-compose.yml
file and run:
docker-compose up -d akimbo-admin
This will start the Akimbo Admin service on port 3010 of your host machine.
On first-time use, you need to log into the Docker container and create an admin user. Run the following commands:
-
Find the container ID for the Akimbo service:
docker ps
-
Use the container ID to log into the container:
docker exec -it <Container_ID> sh
-
Inside the container, run the following command to create the admin user (this will set the ADMIN_EMAIL and ADMIN_PASSWORD you have changed in docker-compose):
node create-admin.ts
Once the service is running, you can access the Akimbo Admin interface by navigating to http://localhost:3010
in your web browser.
- The IP address for the PostgreSQL container (
PG_HOST
) and the admin credentials can be adjusted as needed. - Make sure the PostgreSQL service is running and accessible from within the same Docker network.
- This version is intended for localhost use only , i am not responsible for a security breach if you open this to the public internet.