skip build steps with ARG and compose #143 (#144)

This commit is contained in:
Umputun
2018-07-08 18:43:58 -05:00
committed by GitHub
parent bcd28306e2
commit 43092bb644
4 changed files with 70 additions and 13 deletions
+42
View File
@@ -0,0 +1,42 @@
# compose file for local development
# starts backend on 8080 with basic auth "dev:password" and Dev oauth2 provider on port 8084
# UI on https://127.0.0.1:8080/web
version: '2'
services:
remark42:
build:
context: .
dockerfile: Dockerfile
args:
- SKIP_FRONTEND_TEST=true
image: umputun/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:
- USER # preset environment, UID on the host machine, i.e `id -u`
- REMARK_URL=http://127.0.0.1:8080
- SECRET=12345
- STORE_BOLT_PATH=/srv/var/db
- BACKUP_PATH=/srv/var/backup
- DEBUG=true
- DEV_PASSWD=password
- AUTH_DEV=true # activate local oauth "dev"
- ADMIN=dev_user # set admin flag for default user on local ouath2
volumes:
- ./var:/srv/var
command: /srv/start.sh