-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
143 lines (126 loc) · 2.63 KB
/
docker-compose.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
version: "3"
volumes:
data:
networks:
traefik-network:
external: true
traefik-hub: {}
mq-network:
driver: bridge
my-network:
driver: bridge
services:
postgres:
image: postgres:latest
environment:
- POSTGRES_PASSWORD=postgrespw
ports:
- 5432:5432
volumes:
- data:/var/lib/postgresql
networks:
- traefik-hub
- my-network
restart: always
redis:
image: redis:latest
volumes:
- data:/data
ports:
- 6379:6379
- target: 6379
networks:
- traefik-hub
- my-network
restart: always
ipfs:
networks:
- traefik-hub
- my-network
image: ipfs/kubo:latest
command:
- daemon
- --migrate=true
- --mount
- --routing=dhtclient
- --enable-namesys-pubsub
privileged: true
restart: always
cap_add:
- SYS_ADMIN
security_opt:
- apparmor:unconfined
devices:
- /dev/fuse:/dev/fuse
environment:
- IPFS_PROFILE=server
- IPFS_PATH=/ipfsdata
ports:
- 8080:8080
- 4001:4001
- 5001:5001
- 5003:5003
expose:
- 8080:8080
- 4001:4001
- 5001:5001
- 5003:5003
volumes:
- ./data/ipfs:/ipfsdata
- /etc/fuse.conf:/etc/fuse.conf:ro
- ./data/ipfs:/data/ipfs
- ./data/export:/export
hub-agent:
image: ghcr.io/traefik/hub-agent-traefik:v1.1.0
pull_policy: always
container_name: hub-agent
restart: "on-failure"
command:
- run
- --hub.token=611c4868-c653-4397-bbc0-1d327ed3282a
- --auth-server.advertise-url=http://hub-agent
- --traefik.host=traefik
- --traefik.tls.insecure=true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- traefik-hub
depends_on:
- traefik
# Start Traefik with the latest version
traefik:
image: traefik:v2.9
container_name: traefik
command:
# Enable Hub communication (open the port 9900 and 9901 by default)
- --experimental.hub=true
- --hub.tls.insecure=true
- --metrics.prometheus.addrouterslabels=true
networks:
- traefik-hub
nuclei_backend:
build:
context: .
dockerfile: Dockerfile.app
expose:
- 8000
ports:
- 8000:8000
- "8443:8000"
environment:
- "DATABASE_URL=postgresql://postgres:postgrespw@postgres:5432"
- "REDIS_URL=redis://redis:6379"
depends_on:
- postgres
- redis
- ipfs
links:
- postgres
- ipfs
- redis
restart: always
volumes:
- data:/app/data
networks:
- traefik-hub
- my-network