docker-compose.yml 674 B

12345678910111213141516171819202122232425
  1. version: "3"
  2. services:
  3. node:
  4. image: "node:lts-alpine"
  5. user: "node"
  6. working_dir: /home/node/app
  7. volumes:
  8. - ./server/:/home/node/app
  9. command: ash -c "npm i && node index.js"
  10. nginx:
  11. build:
  12. context: ./
  13. dockerfile: nginx-with-openssl.Dockerfile
  14. image: "nginx-with-openssl"
  15. volumes:
  16. - ./client:/usr/share/nginx/html
  17. - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
  18. - ./docker/certs:/etc/ssl/certs
  19. - ./docker/openssl:/mnt/openssl
  20. ports:
  21. - "8080:80"
  22. - "443:443"
  23. env_file: ./docker/fqdn.env
  24. entrypoint: /mnt/openssl/create.sh
  25. command: ["nginx", "-g", "daemon off;"]