You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

895 B

PREPARE

Base setup

  • mkdir letsencrypt nginx_conf.d postgres_data
  • put site repo into ./treeralker
  • put treetalker.guideget.ru.conf nginx config into ./nginx_conf.d
  • put pg_dumpall --clean | gzip > db.out.gz into ./init_db
  • fix treetalker/nodejs/config/config.env HOST= db address
  • chmod 999:999 postgres_data

Clean up

  • delete ./node_modules dirs
  • delete react release ./build dir
  • remove default_server directive from treetalker.guideget.ru.conf

Dev setup

  • put options-ssl-nginx.conf into ./letsencrypt

Prod setup

  • disable USE_LOCAL_CA=1
  • put real certs in ./letsencrypt
  • remove "1000:443" mapping
  • uncomment 80, 443 port mappings
  • put real password for postgres

RUN

docker-compose build

(watch out for 'npm WARN tar ENOENT: no such file or directory' intermitent failure https://github.com/npm/cli/issues/2319 et al.)

docker-compose up