From a23e813ce64cee770fd99970cc720a64bbec246e Mon Sep 17 00:00:00 2001 From: Kyle Jackson Date: Sat, 10 Aug 2024 18:47:02 +1000 Subject: [PATCH] moved back to miner --- docker-compose.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1df636d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,35 @@ +services: + mongodb: + image: mongo:4.2.23-bionic + container_name: mongodb + ports: ["27017:27017"] + api: + image: cosmtrek/air + container_name: api + working_dir: /app + ports: ["9000:9000"] + command: + - air -c ./.air.toml -- + volumes: + - ./:/app + environment: + - GIN_MODE=${GIN_MODE} + - CHARACTER_NAME=${CHARACTER_NAME} + - TOKEN=${TOKEN} + sync: + container_name: sync + build: + dockerfile: build/sync/Dockerfile + context: . + environment: + - CHARACTER_NAME=${CHARACTER_NAME} + - TOKEN=${TOKEN} + worker: + container_name: worker + build: + dockerfile: build/worker/Dockerfile + context: . + environment: + - CHARACTER_NAME=${CHARACTER_NAME} + - TOKEN=${TOKEN} + - GIN_MODE=${GIN_MODE} \ No newline at end of file