Dockerized version of vlakvlog
-
Clone the repository:
git clone https://github.com/div1spawncamper/docker-vlakvlog.git
-
Navigate to the project directory:
cd docker-vlakvlog
-
Run the Docker Compose Hub file:
docker-compose -f docker-compose-hub.yml up
version: '3'
networks:
my_network:
driver: bridge
volumes:
postgres_data:
app_data:
services:
app:
image: div1spawncamper/vlakvlog-app:0.0.3 # Dockerhub image
environment:
- RAILS_ENV=development
entrypoint: ["/usr/bin/entrypoint.sh"]
depends_on:
- db
volumes:
- app_data:/var/www/app/public
networks:
- my_network
db:
image: postgres
environment:
POSTGRES_PASSWORD: vlak1
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- my_network
web:
image: div1spawncamper/vlakvlog-nginx:0.0.3 # Dockerhub image
depends_on:
- app
- db
ports:
- 80:80
networks:
- my_network
Vlakvlog:
Rails: The main web framework used for the application.
OmniAuth: For OAuth-based authentication.
Rolify: Role management library.
Devise: For user authentication.
Administrate: For creating admin dashboards.
CanCanCan: Authorization library.
pg: PostgreSQL database adapter for Active Record.
Puma: Web server for the application.
Nginx:
Default config for reverse proxy pointing at 127.0.0.1 and port 3000
postgreSQL:
Host: db
Database name: vlakvlog_development
Database username: postgres
Database password: vlak1
This will pull the necessary images from Docker Hub and start the application. The blog should now be accessible at http://localhost
port 80
.
To access administrate dashboard, visit http://localhost/admin