-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (30 loc) · 860 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (30 loc) · 860 Bytes
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
32
33
34
version: '3'
# Define services
services:
# App Service
app:
# Configuration for building the docker image for the service
build:
context: . # Use an image built from the specified dockerfile in the current directory.
dockerfile: Dockerfile
ports:
- "3080:3080" # Forward the exposed port 8080 on the container to port 8080 on the host machine
restart: unless-stopped
networks: # Networks to join (Services on the same network can communicate with each other using their name)
- backend
db:
image: mysql:8.0.27
container_name: gormDB
restart: unless-stopped
environment:
MYSQL_USER: admin
MYSQL_ROOT_PASSWORD: root
MYSQL_PASSWORD: admin
MYSQL_DATABASE: gorm
ports:
- "3377:3306"
networks:
- backend
networks:
backend:
driver: bridge