forked from qinguoyi/osproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
75 lines (73 loc) · 1.81 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: '3'
services:
db:
image: postgres
container_name: storage_postgres
restart: always
environment:
POSTGRES_PASSWORD: '123456'
POSTGRES_USER: 'postgres'
ports:
- '5432:5432'
volumes:
- /home/lighthouse/pg:/var/lib/postgresql/data # 修改为你的路径
networks:
- app-network
redis:
image: redis
container_name: storage_redis
restart: always
ports:
- '6379:6379'
volumes:
- /home/lighthouse/redis:/data # 修改为你的路径
networks:
- app-network
command: --requirepass '123456'
minio:
image: minio/minio
container_name: storage_minio
restart: always
environment:
MINIO_ACCESS_KEY: 'minioadmin'
MINIO_SECRET_KEY: 'minioadmin'
networks:
- app-network
ports:
- '9000:9000'
- '9001:9001'
volumes:
- /home/lighthouse/minio/data:/data # 修改为你的路径
- /home/lighthouse/minio/config:/root/.minio # 修改为你的路径
command: server --console-address ':9001' /data
privileged: true
app:
image: qinguoyi/object-storage-proxy:0.4 # 修改为你的镜像
container_name: storage
restart: always
networks:
- app-network
ports:
- '8888:8888'
volumes:
- /home/lighthouse/conf:/storage/conf # 修改为你的路径
- /home/lighthouse/store:/storage/localstore # 修改为你的路径
depends_on:
- db
- redis
- minio
nginx:
image: nginx
container_name: storage_nginx
restart: always
volumes:
- /home/lighthouse/nginx.conf:/etc/nginx/nginx.conf:ro # 修改为你的路径
ports:
- "80:9999"
networks:
- app-network
depends_on:
- app
networks:
app-network:
driver: bridge