-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (63 loc) · 1.48 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
65
66
67
68
69
version: "3.9"
services:
client:
build:
context: .
dockerfile: Dockerfile-client
environment:
KIDDY_LINES_PROCESSOR_GRPC_URL: kiddy-lines-processor:50051
restart: always
networks:
- dev-network
depends_on:
- kiddy-lines-processor
lines-provider:
ports:
- 8000:8000
build:
context: .
dockerfile: Dockerfile-linesProvider
environment:
PORT: 8000
restart: always
networks:
- dev-network
kiddy-lines-processor:
ports:
- 3333:3333
- 50051:50051
build:
context: .
dockerfile: Dockerfile-kiddyLinesProcessor
environment:
UPDATE_INTERVAL: 2
LINES_PROVIDER_URL: http://lines-provider:8000
HTTP_URL: kiddy-lines-processor:3333
GRPC_URL: kiddy-lines-processor:50051
DATABASE_URL: postgres://postgres:postgres@lines-postgres:5432/lines
restart: always
networks:
- dev-network
depends_on:
- lines-provider
- lines-postgres
lines-postgres:
image: postgres:10.5
hostname: lines
restart: always
ports:
- 5432:5432
volumes:
- lines-postgres-data:/var/lib/postgresql/data
# - ./data/migrations/001_create_urls_table.up.sql:/docker-entrypoint-initdb.d/create_tables.sql
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: lines
networks:
- dev-network
volumes:
lines-postgres-data:
networks:
dev-network:
driver: bridge