2024-10-23 17:51:43 +00:00
|
|
|
version: '3.3' # Specify the Docker Compose file version
|
|
|
|
|
|
|
|
services:
|
|
|
|
boxes-api:
|
|
|
|
image: boxes-api:latest # Use the existing boxes-api image
|
|
|
|
container_name: boxes-api # Name the container
|
|
|
|
ports:
|
|
|
|
- "8080:8080" # Map host port 8080 to container port 8080
|
|
|
|
environment:
|
|
|
|
BOXES_API_CONFIG: "/app/config/config.yaml" # Set the CONFIG environment variable
|
|
|
|
volumes:
|
2024-10-24 02:47:58 +00:00
|
|
|
- ./data:/app/data # Mount host data directory
|
|
|
|
- ./images:/app/images # Mount host images directory
|
|
|
|
- ./config:/app/config # Mount host config directory
|
|
|
|
- ./build:/app/build
|
2024-10-23 17:51:43 +00:00
|
|
|
networks:
|
|
|
|
- app-network
|
|
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
app-network:
|
|
|
|
driver: bridge
|