https://github.com/foyez/dockerized-apps
A collection of containerized applications using Docker and Docker Compose
https://github.com/foyez/dockerized-apps
docker docker-compose go nextjs nodejs react
Last synced: 3 months ago
JSON representation
A collection of containerized applications using Docker and Docker Compose
- Host: GitHub
- URL: https://github.com/foyez/dockerized-apps
- Owner: foyez
- License: mit
- Created: 2025-01-24T22:40:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-11T11:56:41.000Z (over 1 year ago)
- Last Synced: 2025-02-11T12:39:50.919Z (over 1 year ago)
- Topics: docker, docker-compose, go, nextjs, nodejs, react
- Language: TypeScript
- Homepage:
- Size: 4.08 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dockerized Apps
[](https://opensource.org/licenses/MIT)
A collection of containerized applications using Docker and Docker Compose, featuring:
- React + Vite Application
- Next.js Application
- Node.js Application
- Go Application
## Applications
### React + Vite Application
- React 18 with TypeScript and Vite
- Development server with HMR
- Production build with nginx
- Development port: 4000
- Production port: 80
### Next.js Application
- Production-ready Next.js app with TypeScript
- Uses standalone output for optimal container size
- Development server with hot-reload
- Default port: 3000
### Node.js Application
- Simple Node.js server with TypeScript
- Health check endpoint
- Development mode with ts-node-dev
- Default port: 3000 (configurable via PORT env variable)
### Go Application
- Simple Go HTTP server
- Health check endpoint
- Live reload in development using Air
- Default port: 3000 (configurable via PORT env variable)
## Running the Applications
### Development Mode
Each application can be run in development mode with hot-reload:
```sh
# Navigate to the desired application directory
cd
# Start the development container
docker compose -f docker-compose.yaml -f docker-compose.dev.yaml up -d --build
# Start the development container with custom env file
docker compose --env-file file-name.env \
-f docker-compose.yaml -f docker-compose.dev.yaml up -d --build
```
### Production Mode
To run any application in production mode:
```sh
# Navigate to the desired application directory
cd
# Start the production container
docker compose up -d --build
```
## Stopping the Applications
To stop any running application:
```sh
# Navigate to the application directory
cd
# Stop the containers
docker compose down
```
## Contributing
1. Fork the repository
2. Create your feature branch
3. Commit your changes
4. Push to the branch
5. Create a new Pull Request
## License
This project is licensed under the MIT License - see the LICENSE file for details.