snapdrop/docker-compose.yml
2019-06-13 16:47:25 +02:00

16 lines
376 B
YAML

version: "3"
services:
node:
image: "node:lts-alpine"
user: "node"
working_dir: /home/node/app
volumes:
- ./server/:/home/node/app
command: ash -c "npm i && node index.js"
nginx:
image: "nginx:alpine"
volumes:
- ./client:/usr/share/nginx/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
ports:
- "8080:80"