PairDrop/docker-compose.yml

30 lines
911 B
YAML
Raw Normal View History

2019-06-13 16:47:25 +02:00
version: "3"
services:
node:
image: "node:lts-alpine"
user: "node"
working_dir: /home/node/app
volumes:
2023-01-17 10:23:19 +01:00
- ./:/home/node/app
command: ash -c "npm i && npm start"
restart: unless-stopped
2019-06-13 16:47:25 +02:00
nginx:
2020-03-24 15:11:08 +01:00
build:
2020-07-14 22:41:30 +02:00
context: ./docker/
2020-03-24 15:11:08 +01:00
dockerfile: nginx-with-openssl.Dockerfile
image: "nginx-with-openssl"
2019-06-13 16:47:25 +02:00
volumes:
2023-01-17 10:23:19 +01:00
- ./public:/usr/share/nginx/html
2020-07-14 22:12:10 +02:00
- ./docker/certs:/etc/ssl/certs
- ./docker/openssl:/mnt/openssl
# Use production.conf instead of development.conf to redirect http to https (/ca.crt still available)
- ./docker/nginx/development.conf:/etc/nginx/conf.d/default.conf
# - ./docker/nginx/production.conf:/etc/nginx/conf.d/default.conf
2019-06-13 16:47:25 +02:00
ports:
- "8080:80"
- "8443:443"
2020-07-14 22:12:10 +02:00
env_file: ./docker/fqdn.env
2020-03-24 15:11:08 +01:00
entrypoint: /mnt/openssl/create.sh
command: ["nginx", "-g", "daemon off;"]
restart: unless-stopped