-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
67 lines (61 loc) · 1.33 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
version: '3.5'
services:
postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: ip-scan
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ports:
- '5432:5432'
networks:
- local
restart: unless-stopped
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 10s
retries: 5
start_period: 30s
timeout: 5s
redis:
image: redis:6.2.2
networks:
- local
ports:
- '6379:6379'
elasticsearch:
container_name: 'elasticsearch'
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.2
environment:
- xpack.security.enabled=false
- discovery.type=single-node
- 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
networks:
- local
ports:
- 9200:9200
be:
image: ipscanbe
depends_on:
postgres:
condition: service_healthy
ports:
- '3000:3000'
- '5555:5555'
environment:
HOST: 0.0.0.0
PORT: 3000
REDIS_URL: redis://redis:6379/1
DATABASE_URL: 'postgresql://postgres:password@postgres:5432/ip-scan?schema=public'
ELASTICSEARCH_URL: http://elasticsearch:9200
networks:
- local
networks:
local:
driver: bridge
volumes:
postgres: