-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
53 lines (49 loc) · 1.04 KB
/
docker-compose.yml
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
version: '3.7'
services:
ipfs:
image: ipfs/go-ipfs:latest
volumes:
- ipfs_staging:/export
- ipfs_data:/data/ipfs
ports:
- 4001:4001/udp
- 4001:4001
expose:
- 5001
restart: always
db:
image: postgres:alpine
environment:
- POSTGRES_USER=ipfd
- POSTGRES_PASSWORD=ipfd
- POSTGRES_DB=ipfd
volumes:
- db_data:/var/lib/postgresql/data
expose:
- 5432
restart: always
migrations:
image: migrate/migrate:latest
volumes:
- ./migrations:/migrations
entrypoint: migrate -path=/migrations/ -database=postgres://ipfd:ipfd@db/ipfd?sslmode=disable up
depends_on:
- db
restart: on-failure
app:
image: ipfd:latest
environment:
- SITE_URL=http://ipfd.mooo.com
- DATABASE_URL=postgresql://ipfd:ipfd@db/ipfd
- IPFS_API=/dns4/ipfs/tcp/5001
- IPFS_GATEWAY=https://ipfs.io/ipfs/
ports:
- 8000:8000
depends_on:
- ipfs
- db
restart: always
volumes:
db_data:
ipfs_staging:
ipfs_data: