App now builds with docker

This commit is contained in:
2025-04-10 20:47:22 -04:00
parent c8ac1025b2
commit 7e59b8a852
2 changed files with 9 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
version: '0.3' # Use a recent version
version: '3.8' # Use a recent version
services:
# Your Rust Application Service
@@ -14,7 +14,7 @@ services:
# RUST_LOG: info # Example: Set log level
# IMPORTANT: Configure DATABASE_URL to connect to the 'db' service
# The hostname 'db' matches the service name defined below.
DATABASE_URL: postgresql://icarus_op_test:mypassword@db:5432/icarus_auth_test
DATABASE_URL: postgresql://icarus_op:password@db:5432/icarus_auth
# Add any other environment variables your app needs
# APP_HOST: 0.0.0.0
# APP_PORT: 3000
@@ -29,9 +29,9 @@ services:
container_name: icarus_auth_db # Optional: Give the container a specific name
environment:
# These MUST match the user, password, and database name in the DATABASE_URL above
POSTGRES_USER: icarus_op_test
POSTGRES_USER: icarus_op
POSTGRES_PASSWORD: password
POSTGRES_DB: icarus_auth_test
POSTGRES_DB: icarus_auth
volumes:
# Persist database data using a named volume
- postgres_data:/var/lib/postgresql/data