-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
54 lines (52 loc) · 1.07 KB
/
docker-compose.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: '3.1'
networks:
gin-quickly-template:
driver: bridge
services:
App:
image: gin-quickly-template
container_name: gin-quickly-template
build:
context: .
dockerfile: Dockerfile
environment:
Mode: debug
ports:
- "8080:8080"
networks:
- gin-quickly-template
mysql:
image: mysql:8.0
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: 12345678
MYSQL_USER: username
MYSQL_PASSWORD: password
MYSQL_DATABASE: mysql
TZ: Asia/Shanghai
ports:
- "3306:3306"
restart: on-failure
networks:
- gin-quickly-template
postgres:
image: postgres:13
container_name: postgres
environment:
POSTGRES_USER: username
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres
TZ: Asia/Shanghai
ports:
- "5432:5432"
restart: on-failure
networks:
- gin-quickly-template
redis:
image: redis:6
container_name: redis
ports:
- "6379:6379"
restart: on-failure
networks:
- gin-quickly-template