Install Dev Space Website
Last updated
Last updated
You will need to setup a web server using Nginx or Apache if you don't already have one.
You can launch Dev Space website using either of these configs below. Choose without database if you already have a mongodb database container.
Setup a web server using Nginx or Apache.
Download or use the nginx/apache config from that page.
Edit the config file with your domain server_name dev.example.com
and your ssl certificate ssl_certificate
and ssl_certificate_key
If you use Cloudflare you can use the Origin certificate for this.
Go to /etc/nginx
folder and upload the devspace.conf
config file to your sites-enabled
folder.
/etc/apache2 if you use Apache
Reload nginx using sudo service nginx reload
Open a terminal for the server.
Create a folder for the compose config mkdir devspace_web
Navigate to the folder using cd devspace_web
Upload the docker compose file to your server in the devspace_web folder
and the file as docker-compose.yml
Run docker compose up -d
to start the website.
You should see Container devspace-web Started
this confirms that it's working.
Open up your browser and visit your dev.example.com
domain.
You can easily update the website with a small package which will show up in the info menu if available.
Open up a terminal and navigate to the folder that has docker-compose.yml using cd /folder/
Run docker compose down
to stop the website.
Run docker compose pull
to get the latest version.
Run docker compose up -d
to start the website again.
You will need to setup your instance of Dev Space with certain information and also create an administrator account for your instance.