-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (82 loc) · 2.32 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: "3"
services:
app:
build:
dockerfile: ./images/hipsterfy/Dockerfile
context: .
entrypoint: "/usr/local/bin/hipsterfy"
command: [
"--port=${HIPSTERFY_ADDR_PORT}",
"--db=postgresql://${HIPSTERFY_DB_USER}:${HIPSTERFY_DB_PASSWORD}@db:5432/${HIPSTERFY_DB_USER}",
"--spotify_client_id=${HIPSTERFY_SPOTIFY_CLIENT_ID}",
"--spotify_client_secret=${HIPSTERFY_SPOTIFY_CLIENT_SECRET}",
"--spotify_redirect_uri=${HIPSTERFY_SPOTIFY_REDIRECT_URI}",
"--faktory_host=jobqueue",
"--faktory_port=7419",
"--faktory_password=${HIPSTERFY_JOBQUEUE_PASSWORD}",
"--zipkin_host=tracing",
"--zipkin_port=9411",
"--health_secret=foo",
"--pod_name=local-docker-compose"
]
ports:
- "${HIPSTERFY_ADDR_PORT}:${HIPSTERFY_ADDR_PORT}"
depends_on:
- db
- jobqueue
- tracing
worker:
build:
dockerfile: ./images/hipsterfy/Dockerfile
context: .
entrypoint: "/usr/local/bin/hipsterfy-worker"
command: [
"--db=postgresql://${HIPSTERFY_DB_USER}:${HIPSTERFY_DB_PASSWORD}@db:5432/${HIPSTERFY_DB_USER}",
"--spotify_client_id=${HIPSTERFY_SPOTIFY_CLIENT_ID}",
"--spotify_client_secret=${HIPSTERFY_SPOTIFY_CLIENT_SECRET}",
"--faktory_host=jobqueue",
"--faktory_port=7419",
"--faktory_password=${HIPSTERFY_JOBQUEUE_PASSWORD}",
"--zipkin_host=tracing",
"--zipkin_port=9411"
]
depends_on:
- db
- jobqueue
- tracing
db:
build:
dockerfile: ./images/hipsterfy-db/Dockerfile
context: .
environment:
POSTGRES_USER: ${HIPSTERFY_DB_USER}
POSTGRES_PASSWORD: ${HIPSTERFY_DB_PASSWORD}
ports:
- "5432:5432"
volumes:
- "hipsterfy-db-data:/var/lib/postgresql/data"
jobqueue:
image: contribsys/faktory:1.4.0
entrypoint: "/faktory"
command: [
"-b", ":7419",
"-w", ":7420",
"-e", "production"
]
environment:
FAKTORY_PASSWORD: ${HIPSTERFY_JOBQUEUE_PASSWORD}
ports:
- "7419:7419"
- "7420:7420"
volumes:
- "hipsterfy-jobqueue-data:/var/lib/faktory"
tracing:
image: jaegertracing/all-in-one:1.18
environment:
COLLECTOR_ZIPKIN_HTTP_PORT: 9411
ports:
- "9411:9411"
- "16686:16686"
volumes:
hipsterfy-db-data:
hipsterfy-jobqueue-data: