-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 888 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (41 loc) · 888 Bytes
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
version: '3.8'
services:
s3proxy:
build:
context: .
dockerfile: Dockerfile
target: production
ports:
- "8080:8080"
environment:
- BUCKET=${BUCKET:-s3proxy-public}
- NODE_ENV=production
- LOG_LEVEL=info
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
restart: unless-stopped
security_opt:
- no-new-privileges:true
read_only: true
tmpfs:
- /tmp:noexec,nosuid,size=100m
s3proxy-dev:
build:
context: .
dockerfile: Dockerfile
target: development
ports:
- "8080:8080"
environment:
- BUCKET=${BUCKET:-s3proxy-public}
- NODE_ENV=development
- LOG_LEVEL=debug
volumes:
- .:/app
- /app/node_modules
profiles:
- dev