-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
64 lines (63 loc) · 1.39 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
54
55
56
57
58
59
60
61
62
63
64
services:
connector-rs:
build:
context: .
dockerfile: Dockerfile
image: connector-rs
hostname: connector-rs
container_name: connector-rs
restart: unless-stopped
ports:
- "8085:8085"
depends_on:
postgres:
condition: service_healthy
profiles:
- deploy
networks:
- connector-net
env_file:
- ./connector-rs/env/.env
postgres:
container_name: postgres
hostname: postgres
image: postgres:latest
ports:
- "5432:5432"
env_file:
- ./connector-rs/env/postgres.env
volumes:
- ./connector-rs/postgresdata:/var/lib/postgresql/data
- ./connector-rs/sql/dbinit.sql:/docker-entrypoint-initdb.d/dbinit.sql
restart: always
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: connector
POSTGRES_DB: connector
profiles:
- dev
- deploy
networks:
- connector-net
ipfs:
container_name: ipfs
hostname: ipfs
image: ipfs/kubo:latest
profiles:
- dev
- deploy
restart: unless-stopped
volumes:
- ./ipfs/export:/export
- ./ipfs/data:/data
ports:
- 127.0.0.1:5001:5001
networks:
- connector-net
networks:
connector-net: