snapdrop/docker-compose.yml

25 lines
644 B
YAML
Raw Normal View History

2019-06-13 14:47:25 +00:00
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:
2020-03-24 14:11:08 +00:00
build:
context: ./
dockerfile: nginx-with-openssl.Dockerfile
image: "nginx-with-openssl"
2019-06-13 14:47:25 +00:00
volumes:
- ./client:/usr/share/nginx/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
2020-03-24 14:11:08 +00:00
- ./certs:/etc/ssl/certs
- ./openssl:/mnt/openssl
2019-06-13 14:47:25 +00:00
ports:
- "8080:80"
2020-03-24 14:11:08 +00:00
- "443:443"
env_file: fqdn.env
entrypoint: /mnt/openssl/create.sh
command: ["nginx", "-g", "daemon off;"]