-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
127 lines (116 loc) · 2.72 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
version: '3.9'
volumes:
pgdata:
driver: local
services:
#### PREFECT SERVICES
agent:
build:
context: ./docker/prefect-agent
dockerfile: ./Dockerfile
container_name: agent
entrypoint: "./init.sh"
volumes:
- ./.data/prefect/:/home/prefect/.prefect/
- ./docker/prefect-agent/src:/home/prefect/src
depends_on:
- postgres
- redis
ui:
build:
context: ./docker/prefect-ui
dockerfile: ./Dockerfile
container_name: ui
entrypoint: "./init.sh"
ports:
- 4200:4200
depends_on:
- agent
#### SUPPORT SERVICES
postgres:
build:
context: './docker/postgres'
dockerfile: ./Dockerfile
container_name: postgres
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data/pgdata
environment:
- POSTGRES_USER=prefect
- POSTGRES_PASSWORD=prefect
- POSTGRES_DB=prefect_db
- PGDATA=/var/lib/postgresql/data/pgdata
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "prefect_db", "-U", "prefect" ]
timeout: 45s
interval: 10s
retries: 10
adminer:
build:
context: './docker/adminer'
dockerfile: ./Dockerfile
container_name: adminer
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
ports:
- 9000:9000
environment:
- ADMINER_DEFAULT_DB_DRIVER=psql
- ADMINER_DEFAULT_DB_HOST=postgres
- ADMINER_DEFAULT_DB_NAME=prefect_db
healthcheck:
test: [ "CMD", "nc", "-z", "adminer", "9000" ]
timeout: 45s
interval: 10s
retries: 10
depends_on:
- postgres
redis:
build:
context: ./docker/redis
dockerfile: ./Dockerfile
container_name: redis
command: --requirepass secret_redis
volumes:
- ./.data/redis:/data
ports:
- 6379:6379
phpredisadmin:
build:
context: ./docker/phpredisadmin
dockerfile: ./Dockerfile
container_name: phpredisadmin
environment:
- ADMIN_USER=prefect
- ADMIN_PASS=prefect
- REDIS_1_HOST=redis
- REDIS_1_PORT=6379
- REDIS_1_AUTH=secret_redis
ports:
- 9987:80
depends_on:
- redis
minimal-notebook:
build:
context: ./docker/minimal-notebook
dockerfile: ./Dockerfile
container_name: notebook
environment:
- JUPYTER_TOKEN=secret_token
volumes:
- ./docker/minimal-notebook/notebooks:/home/jovyan/work
- ./.data/prefect/raw/:/home/jovyan/data/raw
- ./.data/prefect/curated/:/home/jovyan/data/curated
ports:
- 8888:8888
depends_on:
- agent