From 0076351b2860ab6ff61279fd5e481ad3b9b8a694 Mon Sep 17 00:00:00 2001 From: vinitparekh17 Date: Fri, 4 Oct 2024 11:36:59 +0530 Subject: [PATCH] chore: docker compose for server --- docker-compose.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..56fb735 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,26 @@ +services: + dicedb: + image: dicedb/dicedb:latest + ports: + - "7379" + networks: + - dice-network + + backend: + build: + context: . + ports: + - "8080:8080" + depends_on: + - dicedb + environment: + - DICE_ADDR=dicedb:7379 + - DICE_USERNAME=${DICE_USERNAME} + - DICE_PASSWORD=${DICE_PASSWORD} + networks: + - dice-network + +networks: + dice-network: + driver: bridge +