-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
31 lines (28 loc) · 962 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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 3000 on the container to port 3000 on the host machine.
ports:
- '4000:4000'
# Set needed environment variables for the Go backend.
environment:
BACKEND_PORT: 4000 # 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: