Skip to content

Instantly share code, notes, and snippets.

@patarapolw
Last active May 29, 2020 11:49
Show Gist options
  • Save patarapolw/4c72fa4612c6e1c45474b82bac157f4a to your computer and use it in GitHub Desktop.
Save patarapolw/4c72fa4612c6e1c45474b82bac157f4a to your computer and use it in GitHub Desktop.
Remark42 setup file that is Nuxt Universal-enabled
application:
name: remark42-deploy
project: remark42
cloud_region: aws/eu-west-3
publicly_accessible: true
storage:
- name: srv
type: ssd
size: 1GB
mount_point: /srv/var
routers:
- name: main
custom_domains:
- branch: master
domain: <YOUR_DOMAIN_NAME>
routes:
- application_name: remark42-deploy
paths:
- /
# compose file for local development
# starts backend on 8080 with basic auth "dev:password" and Dev oauth2 provider on port 8084
# UI on http://127.0.0.1:8080/web
#
# build remark42 docker image - docker-compose -f compose-dev-frontend.yml build
# start remark42 service - docker-compose -f compose-dev-frontend.yml up
version: '2'
services:
remark42:
build:
context: .
dockerfile: Dockerfile
args:
- SKIP_BACKEND_TEST=true
# - NODE_ENV=development
image: patarapolw/remark42:dev
container_name: "remark42-dev"
hostname: "remark42-dev"
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
ports:
- "8080:8080" # primary rest server
- "8084:8084" # local oauth2 server
environment:
- REMARK_URL=http://127.0.0.1:8080
- SECRET=12345
- STORE_BOLT_PATH=/srv/var/db
- BACKUP_PATH=/srv/var/backupang
- DEBUG=true
- ADMIN_PASSWD=password
- AUTH_DEV=true # activate local oauth "dev"
- ADMIN_SHARED_ID=dev_user # set admin flag for default user on local ouath2
- POSITIVE_SCORE=false # restricts comment's score to be only positive
- EDIT_TIME=5m # edit window
- AUTH_ANON=true
- AUTH_EMAIL_ENABLE=true
- SITE=remark,polv
volumes:
- ./var:/srv/var
version: "2"
services:
remark:
build: .
image: patarapolw/remark42:dev
container_name: "remark42"
hostname: "remark42"
restart: always
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
# uncomment to expose directly (no proxy)
ports:
- "80:8080"
- "443:8443"
environment:
- REMARK_URL
- SITE
- SECRET
- STORE_BOLT_PATH=/srv/var/db
- BACKUP_PATH=/srv/var/backup
# - DEBUG=true
- AUTH_GOOGLE_CID
- AUTH_GOOGLE_CSEC
- AUTH_GITHUB_CID
- AUTH_GITHUB_CSEC
- AUTH_FACEBOOK_CID
- AUTH_FACEBOOK_CSEC
- AUTH_DISQUS_CID
- AUTH_DISQUS_CSEC
- AUTH_ANON
- ADMIN_PASSWD
- TIME_ZONE
- SSL_TYPE=auto
- SSL_ACME_EMAIL
- IMAGE_PROXY_HTTP2HTTPS=true
volumes:
- ./var:/srv/var
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment