forked from safe-global/safe-events-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (50 loc) · 1.07 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
services:
web:
build:
context: .
dockerfile: ./Dockerfile
env_file:
- .env.docker
depends_on:
db:
condition: service_healthy
rabbitmq:
condition: service_healthy
# working_dir: /app
# command: bash scripts/docker_run.sh
ports:
- "3000:3000"
rabbitmq:
image: rabbitmq:alpine
ports:
- "5672:5672"
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 15s
timeout: 30s
retries: 3
start_period: 15s
db: &db
image: postgres:14-alpine
ports:
- "5432:5432"
environment:
POSTGRES_HOST: db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 15s
timeout: 5s
retries: 5
# Only for development purposes
db-migrations:
<<: *db
ports:
- "5433:5432"
environment:
POSTGRES_HOST: db-migrations
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: migrations