Skip to content

Commit

Permalink
feat: add docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
DHBaek committed Dec 25, 2024
1 parent e2e2608 commit ba0cc68
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
version: '3'

services:
rabbitmq:
image: rabbitmq:3.11.2-management
container_name: diffusers-inpainting-rabbitmq
ports:
- 5672:5672
- 15672:15672
env_file:
- ./envs/rabbitmq.env
volumes:
- ./scripts/init_rabbitmq.sh:/scripts/init_rabbitmq.sh
networks:
- dev
restart: unless-stopped

api-server:
build:
context: .
dockerfile: Dockerfile
container_name: diffusers-inpainting-fastapi
ports:
- 8000:8000
env_file:
- ./envs/fastapi.env
volumes:
- <firebase_credential_dir_path>:/app/key/
networks:
- dev
restart: unless-stopped
depends_on:
- rabbitmq

networks:
dev:
driver: bridge

0 comments on commit ba0cc68

Please sign in to comment.