-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
38 lines (36 loc) · 1.22 KB
/
Copy pathcompose.yml
File metadata and controls
38 lines (36 loc) · 1.22 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
services:
shipper:
image: sarinjacob/shipper:latest
build:
context: .
dockerfile: Dockerfile
# Try to pull the image first. If it's not found, fallback to building it.
pull_policy: missing
container_name: shipper
restart: unless-stopped
ports:
- "8080:8080"
environment:
- SHIPPER_PORT=8080
- SHIPPER_REGISTRY=localhost:5000
# Adjust this if you want to poll faster/slower
- SHIPPER_POLL_INTERVAL=1h
# Since you sometimes use CEST for alarms, you can force the container timezone here if needed:
- TZ=Asia/Kolkata
volumes:
# Mount the data directory to persist the SQLite DB and build logs
- ./shipper_data:/app/data
# Mount the host's Docker socket so Shiper can run `docker buildx` commands
- /var/run/docker.sock:/var/run/docker.sock
registry:
image: registry:3
container_name: shipper_registry
restart: unless-stopped
ports:
- "5000:5000"
environment:
# THIS IS REQUIRED for Shiper's retention policy to work!
- REGISTRY_STORAGE_DELETE_ENABLED=true
volumes:
# This is where all your pushed Docker images (blobs and manifests) will live
- ./registry_data:/var/lib/registry