Good day, today we will be deploying our Node API in my DigitalOcean server (Ubuntu 18.04) using Docker. Hoping it will help you guys, just comment if you have question and please dont forget to subscribe. Thank you. :)
Repo: https://github.com/rodentskie/api_cle...
Here is the docker.compose.yml (Please watch for the spacing and indention)
version: '3.3'
services:
api:
build:
context: ./api_clean_architecture
dockerfile: Dockerfile
restart: unless-stopped
container_name: api_clean
volumes:
./api_clean_architecture:/usr/src/app
api_clean_node_modules:/usr/src/app/node_modules
ports:
890:2001
volumes:
api_clean_node_modules:
#Docker
#API
#DigitalOcean