Cleanup
This commit is contained in:
+6
-4
@@ -1,8 +1,8 @@
|
|||||||
version: '3.8' # Use a recent version
|
version: '3.8' # Use a recent version
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# Your Rust Application Service
|
# --- Web API ---
|
||||||
app:
|
api:
|
||||||
build: . # Tells docker-compose to build the Dockerfile in the current directory
|
build: . # Tells docker-compose to build the Dockerfile in the current directory
|
||||||
container_name: icarus # Optional: Give the container a specific name
|
container_name: icarus # Optional: Give the container a specific name
|
||||||
ports:
|
ports:
|
||||||
@@ -23,7 +23,7 @@ services:
|
|||||||
condition: service_healthy # Wait for the DB to be healthy before starting the app
|
condition: service_healthy # Wait for the DB to be healthy before starting the app
|
||||||
restart: unless-stopped # Optional: Restart policy
|
restart: unless-stopped # Optional: Restart policy
|
||||||
|
|
||||||
# --- Web API Service ---
|
# --- Web API auth ---
|
||||||
auth:
|
auth:
|
||||||
build:
|
build:
|
||||||
context: ../icarus_auth # IMPORTANT: Relative path to the local checkout of your web API repo (containing the Dockerfile)
|
context: ../icarus_auth # IMPORTANT: Relative path to the local checkout of your web API repo (containing the Dockerfile)
|
||||||
@@ -43,6 +43,7 @@ services:
|
|||||||
# - ./path/to/your/web-api-repo:/app
|
# - ./path/to/your/web-api-repo:/app
|
||||||
|
|
||||||
# PostgreSQL Database Service
|
# PostgreSQL Database Service
|
||||||
|
# --- icarus web api db
|
||||||
db:
|
db:
|
||||||
image: postgres:17.4-alpine # Use an official Postgres image (Alpine variant is smaller)
|
image: postgres:17.4-alpine # Use an official Postgres image (Alpine variant is smaller)
|
||||||
container_name: icarus_db # Optional: Give the container a specific name
|
container_name: icarus_db # Optional: Give the container a specific name
|
||||||
@@ -67,6 +68,7 @@ services:
|
|||||||
start_period: 10s
|
start_period: 10s
|
||||||
restart: always # Optional: Restart policy
|
restart: always # Optional: Restart policy
|
||||||
|
|
||||||
|
# --- icarus web auth api db
|
||||||
auth_db:
|
auth_db:
|
||||||
image: postgres:17.4-alpine # Use an official Postgres image (Alpine variant is smaller)
|
image: postgres:17.4-alpine # Use an official Postgres image (Alpine variant is smaller)
|
||||||
container_name: icarus_auth_db # Optional: Give the container a specific name
|
container_name: icarus_auth_db # Optional: Give the container a specific name
|
||||||
@@ -101,4 +103,4 @@ volumes:
|
|||||||
# Define the network (optional, but good practice)
|
# Define the network (optional, but good practice)
|
||||||
networks:
|
networks:
|
||||||
app-network:
|
app-network:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
Reference in New Issue
Block a user