-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
46 lines (44 loc) · 1.13 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
version: "3"
services:
db:
image: postgres:12-alpine
redis:
image: redis:alpine
staff:
image: stupidcodefactory/prison-visits-2:circleci2
environment:
RAILS_ENV: production
RACK_ENV: production
DATABASE_URL: postgres://postgres@db:5432/
REDIS_URL: $REDIS_URL
STAFF_SERVICE_URL: $STAFF_SERVICE_URL
MOJSSO_ID: $MOJSSO_ID
SECRET_KEY_BASE: $SECRET_KEY_BASE
SMTP_DOMAIN: $SMTP_DOMAIN
entrypoint:
- bundle
- exec
- puma
- -b
- tcp://0.0.0.0:3000
- -C
- config/puma_prod.rb
ports:
- "3000:3000"
public:
image: stupidcodefactory/prison-visits-public:circleci2
environment:
RAILS_ENV: production
RACK_ENV: production
SSL_ON: 'false'
STAFF_SERVICE_URL: http://staff:3000
PRISON_VISITS_API: http://staff:3000
ports:
- "4000:3000"
integration-tests:
image: stupidcodefactory/prison-visits-integration-tests:circleci2
volumes:
- ./screenshots:/app/screenshots
depends_on:
- staff
- public