PairDrop/docker-compose.yml
2020-03-24 15:11:08 +01:00

25 lines
No EOL
644 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:
build:
context: ./
dockerfile: nginx-with-openssl.Dockerfile
image: "nginx-with-openssl"
volumes:
- ./client:/usr/share/nginx/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./certs:/etc/ssl/certs
- ./openssl:/mnt/openssl
ports:
- "8080:80"
- "443:443"
env_file: fqdn.env
entrypoint: /mnt/openssl/create.sh
command: ["nginx", "-g", "daemon off;"]