From 351aaa687fdc1588703121c4473c54f4f7011019 Mon Sep 17 00:00:00 2001 From: Loudbook Date: Fri, 6 Dec 2024 17:48:59 -0500 Subject: [PATCH] Create docker-compose.yml --- docker-compose.yml | 68 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e5fe5f3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,68 @@ +services: + backend: + image: ghcr.io/loudbooks/pastebook-backend:latest + ports: + - "8080:8080" + environment: + - SPRING_DATA_MONGODB_URI=mongodb://mongo:27017/pastebook + - SPRING_DATA_MONGODB_DATABASE=pastebook + - S3_ACCESS_KEY_ID=minioadmin + - S3_SECRET_ACCESS_KEY=minioadmin + - S3_BUCKET=pastebook + - S3_ENDPOINT=http://minio:9000 + depends_on: + - mongo + - minio + networks: + - pastebook-network + + frontend: + image: ghcr.io/loudbooks/pastebook-frontend:latest + ports: + - "3000:3000" + environment: + - TITLE=${TITLE} + - DESCRIPTION=${DESCRIPTION} + depends_on: + - backend + networks: + - pastebook-network + pull_policy: always + + mongo: + image: mongo:latest + container_name: mongo + ports: + - "27017:27017" + environment: + MONGO_INITDB_DATABASE: pastebook + volumes: + - mongo-data:/data/db + networks: + - pastebook-network + pull_policy: always + + minio: + image: quay.io/minio/minio:latest + container_name: minio + command: server /data/db + environment: + - MINIO_ROOT_USER=minioadmin + - MINIO_ROOT_PASSWORD=minioadmin + volumes: + - minio-data:/data/db + ports: + - "9000:9000" + networks: + pastebook-network: + aliases: + - pastebook.minio + pull_policy: always + +volumes: + mongo-data: + minio-data: + +networks: + pastebook-network: + driver: bridge