-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
66 lines (60 loc) · 1.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
services:
pg:
image: postgres:alpine
restart: always
environment:
- POSTGRES_DB=ukraine_test
- POSTGRES_USER=ukraine
- POSTGRES_PASSWORD=password
ports:
- "5432:5432"
test:
image: ukraine-sponsor-resettlement
pull_policy: never
depends_on:
- pg
- redis
- sidekiq
- s3
profiles: ["test"]
environment:
# Rails will use existing .env.test file
RAILS_ENV: test
command: bin/test.sh
sidekiq:
build: .
image: ukraine-sponsor-resettlement
pull_policy: never
depends_on:
- pg
- redis
- mock-api
environment:
# Rails will use existing .env.development file
RAILS_ENV: development
REDIS_URL: redis://redis
DB_HOST: pg
command: bundle exec sidekiq
redis:
image: redis
ports:
- "6379:6379"
s3:
image: localstack/localstack:s3-latest
container_name: localstack-s3
environment:
- PERSISTENCE=1
ports:
- "127.0.0.1:4566:4566"
volumes:
- "./bin/init-s3-localstack.py:/etc/localstack/init/ready.d/init-s3.py"
- "/var/run/docker.sock:/var/run/docker.sock"
mock-api:
build: http-mock-server
ports:
- "8081:8081"
clamav:
image: clamav/clamav-debian:stable
restart: always
ports:
- "3310:3310"