backgroundoo/docker-compose.yml
Andrei Vavilov - SKIDATA 6b177c7e90 init commit
2026-04-09 13:39:43 +02:00

32 lines
962 B
YAML

# Auto-generated docker-compose.yml file.
# See https://gowebly.org for more information.
version: '3.8'
# Define services.
services:
# Service for the 'chi' Go backend.
gowebly_chi:
# Configuration for building the Docker image for the service.
build:
# Use an image built from the specified Dockerfile in the current directory.
context: .
dockerfile: Dockerfile
# Set restart rules for the container.
restart: unless-stopped
# Forward the exposed port 7000 on the container to port 7000 on the host machine.
ports:
- '7000:7000'
# Set needed environment variables for the Go backend.
environment:
BACKEND_PORT: 7000 # same as the exposed container port
# Networks to join.
# Services on the same network can communicate with each other using their name.
networks:
- gowebly_chi_network
# Define Docker networks.
networks:
# Create gowebly network.
gowebly_chi_network: