-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (43 loc) · 1.05 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.7"
services:
postgres:
hostname: postgres
image: postgres:13-alpine
container_name: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 30s
timeout: 30s
retries: 3
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: eventbus_dev
redis:
hostname: redis
image: eqalpha/keydb
container_name: redis
healthcheck:
test: keydb-cli ping
ports:
- "6379:6379"
eventbus:
build:
context: ${PWD}
dockerfile: Dockerfile.${EVENTBUS_ENV:-spec}
args:
CRYSTAL_VERSION: ${CRYSTAL_VERSION:-1.5.0}
hostname: eventbus
container_name: eventbus
# restart: always
volumes:
- ${PWD}/spec:/app/spec
- ${PWD}/src:/app/src
environment:
## PostgreSQL
PG_DATABASE_URL: ${PG_DATABASE_URL:-postgresql://postgres:password@postgres:5432/eventbus_dev}
## Redis / KeyDB
REDIS_URL: ${REDIS_URL:-redis://redis:6379}
depends_on:
- postgres
- redis