1
0
Fork 0
mirror of https://github.com/demostf/setup synced 2026-06-04 00:54:07 +02:00
Hosting setup for demos.tf
Find a file
2017-09-22 03:23:24 +02:00
.gitignore add api and DB 2017-03-19 17:42:29 +01:00
api.tmpl fix api setup 2017-04-11 22:41:51 +02:00
docker-compose.yml add archive job 2017-09-22 03:23:24 +02:00
nginx.tmpl add api and DB 2017-03-19 17:42:29 +01:00
piwik.tmpl Add piwik 2017-09-22 02:29:27 +02:00
README.md update readme 2017-04-13 00:34:48 +02:00
static.tmpl add cors for static demo hosting 2017-04-13 14:19:57 +02:00
sync.tmpl add sync 2017-04-13 19:11:55 +02:00

Setup

Hosting setup for demos.tf

Usage

Create a .env file with the following values:

  • HOST: the base domain the site will be hosted from
  • PORT: the port the webserver will listen to
  • DB_PASSWORD: the password that will be used for the database
  • DEMO_ROOT: the folder the demos will be stored in

Start the containers:

docker-compose up -d

Domain names

The setup uses three domains derived from the base domain.

  • ${HOST}: the main site
  • api.${HOST}: the backend api and upload code
  • static.${HOST}: server uploaded demos