-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (47 loc) · 1.28 KB
/
Copy pathdocker-compose.yml
File metadata and controls
53 lines (47 loc) · 1.28 KB
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
services:
postgres:
image: postgres:15
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
# mysql:
# image: mysql:8
# ports:
# - 3306:3306
# environment:
# MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: mysql
rustfs:
image: rustfs/rustfs:1.0.0-glibc
ports:
- 9000:9000
- 9001:9001
environment:
RUSTFS_ACCESS_KEY: access_key
RUSTFS_SECRET_KEY: secret_key
RUSTFS_CONSOLE_ENABLE: 'true'
post_start:
- command:
- sh
- -ec
- |
set -- curl --fail --silent --show-error --aws-sigv4 aws:amz:us-east-1:s3 --user "$$RUSTFS_ACCESS_KEY:$$RUSTFS_SECRET_KEY"
"$$@" --head http://localhost:9000/test || "$$@" --retry 30 --retry-delay 1 --retry-all-errors --request PUT http://localhost:9000/test
# cache-server:
# build:
# dockerfile: Dockerfile
# context: .
# ports:
# - '3000:3000'
# depends_on:
# - rustfs
# environment:
# API_BASE_URL: http://localhost:3000
# STORAGE_DRIVER: s3
# STORAGE_S3_BUCKET: test
# AWS_ACCESS_KEY_ID: access_key
# AWS_SECRET_ACCESS_KEY: secret_key
# AWS_ENDPOINT_URL: http://rustfs:9000