-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 793 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 793 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
35
36
37
38
39
40
version: '3.8'
services:
db:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
networks:
- server-net
volumes:
- type: volume
source: go-docker-vol
target: /db
app:
# Uncomment the following line and comment the build line to use the prebuilt image
# image: omarmokhtar99/go-docker-app
build: .
restart: always
env_file:
- app/.env
ports:
- target: 9090
published: 9090
depends_on:
- db
networks:
- server-net
volumes:
- type: volume
source: go-docker-vol
target: /app
networks:
server-net:
driver: bridge
volumes:
go-docker-vol: