[add] added docker

This commit is contained in:
2021-02-25 00:54:35 -05:00
parent c8c91b21d9
commit 472ae4c90f
3 changed files with 226 additions and 0 deletions

32
docker-compose.yml Normal file
View File

@@ -0,0 +1,32 @@
version: '3.7'
services:
ryndns:
build:
context: .
args:
USER_UID: ${UID_PROXY:-12001}
USER_GID: ${UID_PROXY:-12001}
environment:
# set to run app in subdirectory
RAILS_RELATIVE_URL_ROOT: /rynDNS
# set custom api key prefix
#API_KEY_PREFIX: zW3If4s5
# set custom header name for api key
#API_KEY_HEADER: X-API-Key
# set to reset the admin account
#RAILS_RESET_ADMIN: 1
# set app to run as demo
#RAILS_API_DEMO: 1
# set cycle to reset demo data
#RAILS_DEMO_RESET: 300
restart: always
image: ryndns
container_name: ryndns
ports:
- "3000:3000"
volumes:
- ryndns:/app/data
volumes:
ryndns: