-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (51 loc) · 1.2 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '3.8'
services:
go-admin-api:
container_name: go-admin-api
image: registry.ap-southeast-1.aliyuncs.com/kuops/go-admin-api:latest
privileged: true
restart: always
ports:
- 8000:8000
volumes:
- ./config/:/go-admin-api/config/
- ./static/:/go-admin-api/static/
- ./temp/:/go-admin-api/temp/
networks:
- kuops
mysql:
container_name: mysql
image: mysql:5.7.26
hostname: mysql
restart: always
command: mysqld
environment:
- TZ=Asia/Shanghai
- MYSQL_ROOT_PASSWORD=GoAdmin
volumes:
- /etc/localtime:/etc/localtime:ro
- ./data:/var/lib/mysql/data
- ./data/my.cnf:/etc/mysql/my.cnf
networks:
- kuops
postgres:
image: postgres:14.1-alpine
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "postgres", "-U", "root" ]
timeout: 45s
interval: 10s
retries: 10
restart: always
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=GoAdmin
- APP_DB_USER=GoAdmin
- APP_DB_PASS=GoAdmin
- APP_DB_NAME=GoAdmin
volumes:
- ./db:/docker-entrypoint-initdb.d/
expod:
- 5432:5432
networks:
kuops:
driver: bridge