-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 1 KB
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 1 KB
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
version: '3.5'
services:
billetdb:
image: postgres:14
environment:
POSTGRES_PASSWORD: billet
POSTGRES_DB: billet
redis:
image: redis:latest
web:
build:
context: .
args:
RAILS_ENV: production
RACK_ENV: production
image: billet/app
env_file: ./env.sample
environment:
DATABASE_URL: postgres://postgres:billet@billetdb:5432/billet
REDIS_URL: redis://redis:6379
command: bash -c "sleep 5; bin/rake db:migrate && bin/puma -p 3000 -C config/puma.rb"
networks:
- billetnet
- default
ports:
- "3000:3000"
depends_on:
- billetdb
- redis
worker:
image: billet/app
env_file: ./env.sample
environment:
DATABASE_URL: postgres://postgres:billet@billetdb:5432/billet
REDIS_URL: redis://redis:6379
command: bash -c 'bin/sidekiq -C config/sidekiq.yml'
depends_on:
- billetdb
- redis
- web
networks:
billetnet:
name: billet_custom
driver: bridge