Skip to content

Commit

Permalink
Create docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Loudbooks authored Dec 6, 2024
1 parent 8b1b5df commit 351aaa6
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 351aaa6

Please sign in to comment.