Compare commits

...

1 Commits

Author SHA1 Message Date
KD 21a97c150c tsk-172: Include songparser as docker image (#173)
* tsk-172: Updated docker compose to include songparser service

* tsk-172: Changed docker dependencies

* tsk-172: Cleanup
2025-08-16 19:14:01 -04:00
+24 -7
View File
@@ -17,7 +17,7 @@ services:
main_db: main_db:
condition: service_healthy condition: service_healthy
networks: networks:
- main-api-network - icarus-network
restart: unless-stopped # Optional: Restart policy restart: unless-stopped # Optional: Restart policy
# --- Web API auth --- # --- Web API auth ---
@@ -39,11 +39,30 @@ services:
auth_db: auth_db:
condition: service_healthy condition: service_healthy
networks: networks:
- auth-api-network - icarus-network
# Optional: Mount local code for development (live reload) # Optional: Mount local code for development (live reload)
# volumes: # volumes:
# - ./path/to/your/web-api-repo:/app # - ./path/to/your/web-api-repo:/app
# --- songparser service ---
songparser:
build:
context: ../songparser
ssh: ["default"]
dockerfile: Dockerfile
container_name: songparser
restart: unless-stopped
env_file:
- ../songparser/.env
depends_on:
- api
- main_db
- auth_api
- auth_db
networks:
- icarus-network
# PostgreSQL Database Service # PostgreSQL Database Service
# --- icarus web api db --- # --- icarus web api db ---
main_db: main_db:
@@ -69,7 +88,7 @@ services:
start_period: 10s start_period: 10s
restart: always # Optional: Restart policy restart: always # Optional: Restart policy
networks: networks:
- main-api-network - icarus-network
# --- icarus web auth api db --- # --- icarus web auth api db ---
auth_db: auth_db:
@@ -95,7 +114,7 @@ services:
start_period: 10s start_period: 10s
restart: always # Optional: Restart policy restart: always # Optional: Restart policy
networks: networks:
- auth-api-network - icarus-network
# Define the named volume for data persistence # Define the named volume for data persistence
volumes: volumes:
@@ -106,7 +125,5 @@ volumes:
# Define the network (optional, but good practice) # Define the network (optional, but good practice)
networks: networks:
main-api-network: icarus-network:
driver: bridge
auth-api-network:
driver: bridge driver: bridge