Added Docker file #117

Merged
kdeng00 merged 16 commits from add_docker into v0.2 2025-04-13 14:53:05 -04:00
Showing only changes of commit de0157ac9f - Show all commits
+2 -2
View File
@@ -31,7 +31,7 @@ services:
container_name: auth_api container_name: auth_api
restart: unless-stopped restart: unless-stopped
ports: ports:
- "8000:3000" # Map host port 8000 to container port 8000 (adjust container port based on your app's EXPOSE in Dockerfile) - "8001:3000" # Map host port 8000 to container port 8000 (adjust container port based on your app's EXPOSE in Dockerfile)
environment: environment:
# Environment variables your API needs, e.g., database connection # Environment variables your API needs, e.g., database connection
DATABASE_URL: postgresql://icarus_op:password@postgres:5432/icarus_auth DATABASE_URL: postgresql://icarus_op:password@postgres:5432/icarus_auth
@@ -74,7 +74,7 @@ services:
container_name: icarus_auth_db # Optional: Give the container a specific name container_name: icarus_auth_db # Optional: Give the container a specific name
environment: environment:
# These MUST match the user, password, and database name in the DATABASE_URL above # These MUST match the user, password, and database name in the DATABASE_URL above
POSTGRES_USER: icarus POSTGRES_USER: icarus_op
POSTGRES_PASSWORD: password POSTGRES_PASSWORD: password
POSTGRES_DB: icarus_auth POSTGRES_DB: icarus_auth
volumes: volumes: