-
Notifications
You must be signed in to change notification settings - Fork 63
/
docker-compose.yml
61 lines (58 loc) · 1.8 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
version: '3.8'
x-app: &common
build:
args:
BUNDLE_ENTERPRISE__CONTRIBSYS__COM: "${BUNDLE_ENTERPRISE__CONTRIBSYS__COM}"
context: .
environment:
BUNDLE_ENTERPRISE__CONTRIBSYS__COM: "${BUNDLE_ENTERPRISE__CONTRIBSYS__COM}"
SETTINGS__DATABASE_URL: "postgis://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-password}@${POSTGRES_HOST:-postgres}:${POSTGRES_PORT:-5432}/${POSTGRES_DATABASE:-vets_api_development}?pool=4"
SETTINGS__TEST_DATABASE_URL: "postgis://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-password}@${POSTGRES_HOST:-postgres}:${POSTGRES_PORT:-5432}/${POSTGRES_DATABASE:-vets_api_test}"
SETTINGS__REDIS__APP_DATA__URL: "redis://redis:6379"
SETTINGS__REDIS__SIDEKIQ__URL: "redis://redis:6379"
SETTINGS__REDIS__RAILS_CACHE__URL: "redis://redis:6379"
image: vets-api:${DOCKER_IMAGE:-latest}
volumes:
- "../vets-api-mockdata:/cache"
- .:/app:cached
- shared-vol:/tmp
working_dir: /app
depends_on:
- clamav
- postgres
- redis
links:
- clamav
- postgres
- redis
services:
clamav:
image: clamav/clamav:1.3.0
ports:
- 33100:3310
volumes:
- shared-vol:/vets-api
redis:
image: redis:6.2-alpine
ports:
- 63790:6379
postgres:
command: postgres -c shared_preload_libraries=pg_stat_statements -c pg_stat_statements.track=all -c max_connections=200
environment:
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:-password}"
POSTGRES_USER: "${POSTGRES_USER:-postgres}"
PGDATA: /tmp
image: postgis/postgis:14-3.3-alpine
ports:
- 54320:5432
volumes:
- ./data:/var/lib/postgresql/data:cached
web:
<<: *common
ports:
- 3000:3000
worker:
<<: *common
command: bundle exec sidekiq -q critical,4 -q tasker,3 -q default,2 -q low,1
volumes:
shared-vol: