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: - /home/stwhite/dockerboxes/boxes-api/data:/app/data # Mount host data directory - /home/stwhite/dockerboxes/boxes-api/images:/app/images # Mount host images directory - /home/stwhite/dockerboxes/boxes-api/config:/app/config # Mount host config directory - /home/stwhite/dockerboxes/boxes-api/build:/app/build networks: - app-network networks: app-network: driver: bridge