Commit cd8ae71b authored by Muhammad Usman's avatar Muhammad Usman

first commit

parent 74dfbf54
version: '3'
services:
usapp-api:
container_name: "usapp-api"
image: "usmanbaloch/usapp-api:latest"
ports:
- "8081:8081"
networks:
- usapp
volumes:
- ./api:/app
environment:
APP_ENV: "development"
DB_PASSWORD: "ssi123"
DB_USER: "usapi-user"
DB_NAME: "usapi"
DB_HOST: "usapp-db"
usapp-portal:
container_name: "usapp-portal"
image: "usmanbaloch/usapp-portal:latest"
ports:
- "8082:3000"
networks:
- usapp
volumes:
- ./usapp_portal:/app
environment:
API_URL: "http://usapp-api:8081"
networks:
usapp:
external: true
1. create database nisum;
2. use nisum;
3.
CREATE TABLE users (
id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
firstname VARCHAR(30) NOT NULL,
lastname VARCHAR(30) NOT NULL,
email VARCHAR(50),
reg_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);
4. insert into users (firstname,lastname,email) values ('muhammad','usman','usmanm@nisum.com');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment