-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 822 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (39 loc) · 822 Bytes
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
version: '3'
services:
postgres:
build:
context: ./postgres
dockerfile: Dockerfile
volumes:
- postgres_data:/var/lib/postgresql/data/
restart: always
environment:
POSTGRES_USER: search-engine
POSTGRES_PASSWORD: search-engine
POSTGRES_DB: search-engine
networks:
- network-search-engine
ports:
- 54321:5432
search-engine:
build: .
command: ["./tools/run.sh"]
volumes:
- files_data:/files
environment:
PG_HOST: postgres
PG_USER: search-engine
PG_DATABASE: search-engine
PG_PASSWORD: search-engine
depends_on:
- postgres
restart: always
networks:
- network-search-engine
ports:
- 8001:8001
volumes:
postgres_data:
files_data:
networks:
network-search-engine: