tsk-42: Dockerize the service #44
@@ -1,4 +1,4 @@
|
|||||||
ROOT_DIRECTORY=/usr/local/bin
|
ROOT_DIRECTORY=/usr/local/bin
|
||||||
ICARUS_BASE_API_URL=http://localhost:8000
|
ICARUS_BASE_API_URL=http://api:3000
|
||||||
ICARUS_AUTH_BASE_API_URL=http://localhost:8001
|
ICARUS_AUTH_BASE_API_URL=http://auth_api:3000
|
||||||
SERVICE_PASSPHRASE=iUOo1fxshf3y1tUGn1yU8l9raPApHCdinW0VdCHdRFEjqhR3Bf02aZzsKbLtaDFH
|
SERVICE_PASSPHRASE=iUOo1fxshf3y1tUGn1yU8l9raPApHCdinW0VdCHdRFEjqhR3Bf02aZzsKbLtaDFH
|
||||||
|
@@ -58,9 +58,6 @@ COPY --from=builder /usr/src/app/target/release/songparser .
|
|||||||
# It's generally better to configure via environment variables in Docker though
|
# It's generally better to configure via environment variables in Docker though
|
||||||
COPY --from=builder /usr/src/app/.env .
|
COPY --from=builder /usr/src/app/.env .
|
||||||
|
|
||||||
# Expose the port your Axum app listens on (e.g., 3000 or 8000)
|
|
||||||
# EXPOSE 3000
|
|
||||||
|
|
||||||
# Set the command to run your application
|
# Set the command to run your application
|
||||||
# Ensure this matches the binary name copied above
|
# Ensure this matches the binary name copied above
|
||||||
CMD ["./songparser"]
|
CMD ["./songparser"]
|
||||||
|
@@ -7,9 +7,6 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
ssh: ["default"] # Uses host's SSH agent
|
ssh: ["default"] # Uses host's SSH agent
|
||||||
container_name: songparser # Optional: Give the container a specific name
|
container_name: songparser # Optional: Give the container a specific name
|
||||||
# ports:
|
|
||||||
# Map host port 8000 to container port 3000 (adjust as needed)
|
|
||||||
# - "8002:3002"
|
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
restart: unless-stopped # Optional: Restart policy
|
restart: unless-stopped # Optional: Restart policy
|
||||||
|
Reference in New Issue
Block a user