This is the Backend Project that runs API webserver and database containers.
Ensure you have the following installed on your machine:
- Docker
- Docker Compose
- Create and start the containers:
docker compose -p stage up -d
- Remove the entire containers ( Backend ):
docker compose down
- Remove the entire containers ( Backend and Frontend ):
docker compose -p stage down
- Build and run Stage Container:
docker compose up -d --build stage_container
- Create and start the containers:
docker compose -p stage up -d --build
- Build and run Stage Nginx:
docker compose up -d --build --no-deps stage-nginx
Once the containers are up and running, you can access the application and API endpoints as defined in your setup.
Dockerfile
: Contains the instructions to build the Docker image for the application.docker-compose.yml
: Defines the services, networks, and volumes used in your Docker application.nginx.conf
: Nginx configuration file used for reverse proxying requests to the appropriate services.
Ensure that the environment variables and configuration files are correctly set up before starting the application. You may need to modify the nginx.conf
file or the compose.yml
file to match your environment.
docker exec -t postgres_container pg_dumpall -c -U stage > /tmp/my_backup.sql