forked from Netflix/dispatch-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (47 loc) · 1.04 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
version: "3.4"
x-restart-policy: &restart_policy
restart: unless-stopped
services:
postgres:
<<: *restart_policy
env_file:
- .env
image: postgres:14.6
ports:
- "5432:5432"
volumes:
- "dispatch-postgres:/var/lib/postgresql/data"
core:
image: dispatch-local
env_file:
- .env
build:
# Pro-tip: point this to a relative directory containing the Dispatch
# project root to pick up changes from your dev environment
# (e.g., ../dispatch-root)
context: https://github.com/Netflix/dispatch.git#latest
web:
<<: *restart_policy
image: dispatch-local
depends_on:
- postgres
- core
env_file:
- .env
command: ["server", "start", "dispatch.main:app", "--host=0.0.0.0"]
ports:
- "8000:8000"
scheduler:
<<: *restart_policy
image: dispatch-local
depends_on:
- postgres
- core
env_file:
- .env
environment:
- STATIC_DIR=
command: ["scheduler", "start"]
volumes:
dispatch-postgres:
external: true