forked from 18F/identity-idp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (49 loc) · 1.37 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
# Compose file for local development
version: '3'
services:
app:
build:
context: .
dockerfile: development.Dockerfile
volumes:
# Mounts entire tree into container - Only suitable for development
# image with Gems installed into system path and node modules in
# alternate location
- .:/upaya
ports:
- "3000:3000"
environment:
redis_url: "redis://redis:6379"
redis_throttle_url: "redis://redis:6379"
DATABASE_URL: "postgres://postgres@db"
DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL: 'true'
# Set database timeouts to 30 seconds
database_timeout: '30000'
database_statement_timeout: '30000'
RACK_TIMEOUT_SERVICE_TIMEOUT: '30000'
DOCKER_DB_HOST: 'db'
DOCKER_DB_USER: 'postgres'
# '' == 1 thread for tests; performs better in a container
TEST_ENV_NUMBER: ''
SMTP_HOST: 'mailcatcher'
NODE_ENV: 'development'
depends_on:
- db
- redis
- mailcatcher
tty: true
stdin_open: true
db:
image: postgres:9.6-alpine
volumes:
- ./postgres-data:/var/lib/postgresql/data
# Trust Docker network - Not suitable for production
environment:
POSTGRES_HOST_AUTH_METHOD: 'trust'
redis:
image: redis:5-alpine
mailcatcher:
image: rordi/docker-mailcatcher
container_name: mailcatcher
ports:
- 1080:1080