-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (55 loc) · 1.45 KB
/
Copy pathdocker-compose.yml
File metadata and controls
59 lines (55 loc) · 1.45 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
54
55
56
57
58
59
# ipfs-gate v0.1 — docker-compose.
# Three services: kubo (IPFS daemon), ipfs-gate (this app), nginx (HTTPS + reverse proxy).
# certbot is separate (run on-demand for cert issuance/renewal).
services:
kubo:
image: ipfs/kubo:latest
container_name: ipfs-gate-kubo
restart: unless-stopped
volumes:
- ./data/kubo:/data/ipfs
environment:
# 'server' profile = no LAN discovery, suitable for VPS deployment
IPFS_PROFILE: server
# No external port mappings — only ipfs-gate talks to it via internal network.
networks:
- internal
healthcheck:
test: ["CMD", "ipfs", "id"]
interval: 30s
timeout: 5s
retries: 5
start_period: 30s
ipfs-gate:
build: .
container_name: ipfs-gate
restart: unless-stopped
env_file: ./.env
volumes:
- ./data/ipfs-gate:/app/data
depends_on:
kubo:
condition: service_healthy
networks:
- internal
# No external port mapping — nginx in front handles public traffic.
expose:
- "3001"
nginx:
image: nginx:alpine
container_name: ipfs-gate-nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/ipfs-gate.conf:/etc/nginx/conf.d/default.conf:ro
- ./data/letsencrypt:/etc/letsencrypt:ro
- ./data/letsencrypt-webroot:/var/www/certbot:ro
depends_on:
- ipfs-gate
networks:
- internal
networks:
internal:
driver: bridge