-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
46 lines (42 loc) · 1.28 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
# Simplify running the application inside a container locally.
# Usage: `docker-compose up`
#
# Do not use docker-compose in production environments.
#
version: '3'
volumes:
clamav-signatures:
services:
db:
image: postgres:15.2-alpine
environment:
POSTGRES_HOST_AUTH_METHOD: trust
clamav:
image: ghcr.io/ministryofjustice/hmpps-clamav-freshclammed
ports:
- "3310:3310"
volumes:
- clamav-signatures:/var/lib/clamav
web:
build: .
environment:
ENV_NAME: production
RAILS_ENV: production
DATABASE_URL: postgresql://postgres@db/laa-apply-for-criminal-legal-aid
SECRET_KEY_BASE: f22760a0bd78a9191ba4c247e23a281cb251461cdba6b5215043ca11b694d734
DATASTORE_API_ROOT: http://host.docker.internal:3003
DATASTORE_API_AUTH_SECRET: foobar
ENABLE_PROMETHEUS_EXPORTER: "false" # can be enabled for quick tests
PROMETHEUS_EXPORTER_PORT: 9394
RAILS_SERVE_STATIC_FILES: "1"
RAILS_LOG_TO_STDOUT: "1"
DATABASE_SSLMODE: disable
DISABLE_HTTPS: "1"
BC_USE_DEV_MOCK: "true"
OMNIAUTH_TEST_MODE: "true"
CLAMD_CONF_FILENAME: "clamd.docker.conf"
ports:
- "3000:3000" # puma server (rails app)
- "9394:9394" # prometheus exporter `/metrics` endpoint
depends_on:
- db