-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
45 lines (42 loc) · 888 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
45 lines (42 loc) · 888 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
44
45
version: '2'
networks:
luigi-net:
services:
scheduler:
build:
context: docker/base
image: spiside/luigi:latest
ports:
- "8082:8082"
environment:
LUIGI_TASK_HISTORY_DB_CONNECTION: postgres://luigi@db/dev
LUIGI_SCHEDULER_RECORD_TASK_HISTORY: "true"
depends_on:
- db
entrypoint:
- ./wait-for-postgres.sh
- db
networks:
luigi-net:
worker:
build:
dockerfile: docker/Dockerfile.worker
context: .
hostname: worker
volumes:
- .:/luigi
environment:
LUIGI_CORE_DEFAULT-SCHEDULER-URL: http://scheduler:8082
depends_on:
- scheduler
networks:
luigi-net:
db:
image: postgres:12.4
environment:
POSTGRES_USER: luigi
POSTGRES_PASSWORD: password
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: dev
networks:
luigi-net: