From 976315b0d0bfa434ae8641f098c6ff324c0e2c83 Mon Sep 17 00:00:00 2001 From: Clivern Date: Sun, 12 Feb 2023 00:41:16 +0100 Subject: [PATCH] feat: update docker-compose --- docker-compose.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8f40189..7f64790 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,12 +18,8 @@ services: DB_SSL: null DB_CA_CERTFILE_PATH: null MIX_ENV: prod - restart: unless-stopped command: sh -c "/app/bin/migrate && /app/bin/server" - healthcheck: - test: ["CMD", "curl", "--fail", "http://localhost:4000/_ready"] - interval: 30s - retries: 3 + restart: unless-stopped depends_on: - db @@ -41,6 +37,10 @@ services: image: nginx:1.25.4-alpine3.18 ports: - '80:80' + healthcheck: + test: ["CMD", "curl", "--fail", "http://localhost/_ready"] + interval: 30s + retries: 3 restart: unless-stopped volumes: - ./nginx.conf:/etc/nginx/nginx.conf