first commit
This commit is contained in:
37
docker-compose.yml
Normal file
37
docker-compose.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
name: roleforge
|
||||
|
||||
services:
|
||||
api:
|
||||
image: roleforge-backend:latest
|
||||
build: .
|
||||
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
|
||||
env_file: .env
|
||||
ports:
|
||||
- "8000:8000"
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
volumes:
|
||||
- .:/app
|
||||
# API creates ephemeral runner containers and passes the same socket into them so Molecule can run Docker platforms.
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
postgres:
|
||||
image: postgres:16
|
||||
environment:
|
||||
POSTGRES_DB: roleforge
|
||||
POSTGRES_USER: roleforge
|
||||
POSTGRES_PASSWORD: roleforge
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- pg_data:/var/lib/postgresql/data
|
||||
- ./app/sql/001_init.sql:/docker-entrypoint-initdb.d/001_init.sql:ro
|
||||
|
||||
redis:
|
||||
image: redis:7
|
||||
ports:
|
||||
- "6379:6379"
|
||||
|
||||
volumes:
|
||||
pg_data:
|
||||
Reference in New Issue
Block a user