From 712f555ed02c562f47aed9c8ac22003813caff42 Mon Sep 17 00:00:00 2001 From: Noel Simbolon <84700640+noelsimbolon@users.noreply.github.com> Date: Sun, 29 Oct 2023 10:41:07 +0700 Subject: [PATCH] feat: add docker-compose.yml --- docker-compose.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..be08f9f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,43 @@ +version: '3.8' +services: + tonality-client: + container_name: tonality-client + build: + context: ../tonality-client + dockerfile: Dockerfile + ports: + - "8000:80" + + tonality-rest: + container_name: tonality-rest + build: + context: ../tonality-rest + dockerfile: Dockerfile + env_file: + - env/tonality-rest.env + ports: + - "8001:3001" + depends_on: + tonality-rest-db: + condition: service_healthy + networks: + - backend + + tonality-rest-db: + container_name: tonality-rest-db + hostname: tonality-rest-db + image: postgres:15.4-alpine + env_file: + - env/tonality-rest-db.env + healthcheck: + test: pg_isready + timeout: 45s + interval: 10s + retries: 10 + ports: + - "8002:5432" + networks: + - backend + +networks: + backend: -- GitLab