-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (65 loc) · 1.44 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
version: '3'
services:
database:
image: postgres:11.1
volumes:
- postgresdata:/var/lib/postgresql/data
ports:
- "${POSTGRES_PORT:-15432}:5432"
env_file:
- .env
redis:
image: redis:6.0-alpine
command: redis-server --appendonly yes
volumes:
- redisdata:/data
ports:
- "${REDIS_PORT:-16379}:6379"
localstack:
image: localstack/localstack-full
ports:
- "4566:4566"
- "8080:8080"
env_file:
- .env
environment:
- SERVICES=sns
- DEFAULT_REGION=eu-central-1
- DEBUG=s3
- PORT_WEB_UI=8080
- KINESIS_ERROR_PROBABILITY=${KINESIS_ERROR_PROBABILITY- }
- DOCKER_HOST=unix:///var/run/docker.sock
- HOSTNAME_EXTERNAL=localstack
- DATA_DIR=${DATA_DIR- }
- AWS_EXECUTION_ENV=True
- HOST_TMP_FOLDER=${TMPDIR}
volumes:
- "${TMPDIR:-/tmp/localstack}:/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
app:
build: .
volumes:
- .:/app
env_file:
- .env
ports:
- "${APP_PORT:-3000}:3000"
depends_on:
- database
- redis
- localstack
tty: true
stdin_open: true
sidekiq:
build: .
volumes:
- .:/app
command: bundle exec sidekiq -q default -q sms_notifications -q push_notifications -c ${SIDEKIQ_THREADS:-10}
depends_on:
- app
env_file:
- .env
volumes:
postgresdata: {}
redisdata: {}
localstackdata: {}