Skip to content

laposa/onyx-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Onyx

Setup dev environment on your local server

Clone repository

git clone https://github.com/laposa/onyx.git

Create new network

docker network create my_onyx_net

Create Db server (if you don't have one)

Including user (docker), password (docker) and database (docker).

docker run -d --name postgres --network my_onyx_net --hostname postgres -p 127.0.0.1:5432:5432/tcp -e POSTGRES_USER=docker -e POSTGRES_PASSWORD=docker postgres:9.6

Project setup

docker run -it --rm --network my_onyx_net -v $(pwd)/onyx/project_skeleton/base_with_blog.sql:/tmp/import.sql postgres:9.6 psql -h postgres -U docker -f /tmp/import.sql
cp -a onyx/project_skeleton/base_with_blog my_onyx_project
cd my_onyx_project
chmod -R a+w var/

Run

docker run -it --rm --network my_onyx_net -p 127.0.0.1:8080:8080/tcp --mount type=bind,source=`pwd`,target=/var/www/ laposa/onyx

Access

http://localhost:8080/edit

username: docker
password: docker

Building this image

docker build --no-cache -t laposa/onyx .
docker push laposa/onyx

See:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published