add docker-compose

This commit is contained in:
adb 2021-03-31 21:41:03 +02:00
parent bb383094f7
commit 2a9f5873ff

13
docker-compose.yml Normal file
View File

@ -0,0 +1,13 @@
version: '3'
services:
node:
image: node:alpine
container_name: ovh-api-dyndns
restart: always
volumes:
- ./:/home/node/app/
- ./node_logs/:/var/log/
working_dir: /home/node/app/
environment:
- NODE_ENV=production
command: sh -c 'npm i && nodejs index.js'