This is repository for TaiCOL API v2 developed based on name tool database schema.
- copy
dotenv.example
file and rename it to.env
- run
docker-compose build
to build docker images - run
docker-compose up -d
to start API service
Note To run TaiCOL API v1 and v2 at the same time, follow the following steps:
- run v1 on port 8001 and v2 on port 8002 docker separately
- move
scripts/custom_nginx.conf
to/etc/nginx/conf.d/
- restart nginx
sudo systemctl restart nginx
- check nginx status
systemctl status nginx.service
- if https is required, install certbot and initialize it
sudo amazon-linux-extras install epel sudo yum install certbot-nginx sudo certbot --nginx