-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (51 loc) · 1.34 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'
networks:
sunnysunco-web-network:
driver: bridge
services:
minio:
image: minio/minio:RELEASE.2024-03-05T04-48-44Z
container_name: sunnysunco-web-network-minio
restart: always
command: server /data --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: sunnysunco
MINIO_ROOT_PASSWORD: sunnysunco
volumes:
- ./docker/minio/data:/data
- ./docker/minio/root/.minio:/root/.minio
networks:
- sunnysunco-web-network
pgsql:
restart: always
image: postgres:16.2
# shm_size: 256mb # 设置共享内存大小
container_name: sunnysunco-web-network-pgsql
environment:
POSTGRES_USER: sunnysunco
POSTGRES_PASSWORD: sunnysunco
POSTGRES_DB: sunnysunco
TZ: Asia/Shanghai
volumes:
- ./docker/pgsql/data:/var/lib/postgresql/data
- ./docker/pgsql/log:/var/log/postgresql
ports:
- "5432:5432"
networks:
- sunnysunco-web-network
redis:
image: redis:6
container_name: sunnysunco-web-network-redis
restart: always
environment:
TZ: Asia/Shanghai
command: [ "redis-server", "--requirepass", "sunnysunco", "--appendonly", "yes" ]
volumes:
- ./docker/redis/data:/data
ports:
- "6379:6379"
networks:
- sunnysunco-web-network