-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
57 lines (53 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
47
48
49
50
51
52
53
54
55
56
57
version: '3.2'
services:
db:
image: postgres:15.2
container_name: nimble_survey_web_db
environment:
- POSTGRES_DB=nimble_survey_web_production
ports:
- "5432:5432"
redis:
image: redis:7.0
container_name: nimble_survey_web_redis
ports:
- "6379:6379"
web:
build:
context: .
cache_from:
- ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${BRANCH_TAG}
args:
- BUILD_ENV=production
- RUBY_ENV=production
- NODE_ENV=production
- ASSET_HOST
- MAILGUN_SMTP_PORT
- MAILGUN_SMTP_SERVER
- MAILGUN_SMTP_LOGIN
- MAILGUN_SMTP_PASSWORD
- APP_DOMAIN
- BASIC_AUTHENTICATION_USERNAME
- BASIC_AUTHENTICATION_PASSWORD
image: ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${BRANCH_TAG}
container_name: nimble_survey_web_web
command: bin/start.sh
ports:
- "${PORT}:${PORT}"
stdin_open: true
tty: true
depends_on:
- db
volumes:
- "ruby-bundle:/bundle"
environment:
- RACK_ENV=production
- RAILS_ENV=production
- NODE_ENV=production
- DATABASE_URL=postgres://postgres@db/nimble_survey_web_production
- ASSET_HOST
- DEFAULT_HOST
- MAILER_SENDER
- RAILS_MASTER_KEY
volumes:
ruby-bundle: