diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml new file mode 100644 index 0000000..87b937d --- /dev/null +++ b/docker-compose.prod.yml @@ -0,0 +1,17 @@ +version: "3.8" + +services: + portfolio: + image: gitlab.impresion3d.pro/root/davidaragon-portfolio:latest + container_name: davidaragon-portfolio + ports: + - "8081:80" + restart: unless-stopped + environment: + - NODE_ENV=production + healthcheck: + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost/"] + interval: 30s + timeout: 3s + retries: 3 + start_period: 5s