-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathdocker-compose.yml
69 lines (63 loc) · 1.53 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
services:
app:
container_name: hooks_processor
image: ${IMAGE:-hooks_processor-app}:${TAG:-latest}
build:
context: .
cache_from:
- "${IMAGE:-hooks_processor}:${IMAGE_TAG:-latest}"
dockerfile: Dockerfile
target: ${DOCKER_BUILD_TARGET:-dev}
args:
- BUILD_ENV=test
ssh:
- default
ports:
- "50050"
links:
- db:db
- rabbitmq:rabbitmq
depends_on:
db:
condition: service_healthy
rabbitmq:
condition: service_healthy
environment:
IN_DOCKER: "true"
POSTGRES_DB_NAME: "front"
POSTGRES_DB_USER: "postgres"
POSTGRES_DB_PASSWORD: "the-cake-is-a-lie"
POSTGRES_DB_HOST: "db"
POSTGRES_DB_POOL_SIZE: 1
AMQP_URL: "amqp://rabbitmq:5672"
CI: $CI
MIX_ENV: ${MIX_ENV:-dev}
WEBHOOK_PROVIDER: "test"
LOG_LEVEL: "debug"
volumes:
- .:/app
db:
image: postgres:9.6
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: "the-cake-is-a-lie"
restart: "on-failure"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 3s
timeout: 3s
retries: 5
rabbitmq:
image: rabbitmq:3.11.18-management
environment:
RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: "-rabbit log_levels [{connection,error}]"
restart: "on-failure"
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 3s
timeout: 3s
retries: 5
volumes:
postgres-data:
driver: local