From 76427c9f130adb90f90cccc84b92dd49f5147ed5 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 11 Jan 2024 15:25:08 -0500 Subject: Docker container version (#39) * + Dockerfile and compose file + Scripts dir and startup script + Build image npm script * * Moves env to file * + Tags image with info from package.json * Moves image creation to script * Updates README * Update README.md Co-authored-by: Sebastien Castiel --------- Co-authored-by: Maxime Jacob Co-authored-by: Sebastien Castiel --- compose.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 compose.yaml (limited to 'compose.yaml') diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..86a4656 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,24 @@ +services: + app: + image: spliit2:latest + ports: + - 3000:3000 + env_file: + - container.env + depends_on: + db: + condition: service_healthy + + db: + image: postgres:latest + ports: + - 5432:5432 + env_file: + - container.env + volumes: + - /var/lib/postgresql/data:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres"] + interval: 5s + timeout: 5s + retries: 5 -- cgit v1.3