-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.prod.yml
40 lines (35 loc) · 1.04 KB
/
docker-compose.prod.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
version: '3.6'
volumes:
community-engine-bundler-gems:
community-engine-db-data-prod:
community-engine-redis:
x-env-info: &env-info
env_file:
- './.env.prod'
x-app-shared: &app-shared
<<: *env-info
image: better-together/community-engine-rails:latest
services:
app: &app
<<: *app-shared
container_name: community-engine-app
build: # "context" and "dockerfile" fields have to be under "build"
args:
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
FOG_DIRECTORY: ${FOG_DIRECTORY}
FOG_HOST: ${FOG_HOST}
FOG_REGION: ${FOG_REGION}
ASSET_HOST: ${ASSET_HOST}
CDN_DISTRIBUTION_ID: ${CDN_DISTRIBUTION_ID}
context: .
dockerfile: ./Dockerfile
command: bash -c "rm -f spec/dummy/tmp/pids/server.pid && cd ./spec/dummy && bundle exec puma -C config/puma.rb"
ports:
- '5000:5000'
db:
<<: *env-info
volumes:
- community-engine-db-data-prod:/var/lib/postgresql/data
sidekiq:
<<: *app-shared