-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose-development.yml
More file actions
executable file
·71 lines (69 loc) · 1.74 KB
/
Copy pathdocker-compose-development.yml
File metadata and controls
executable file
·71 lines (69 loc) · 1.74 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '2'
services:
db_dev:
image: postgres:9.5.1
environment:
POSTGRES_PASSWORD: mysecretlocalpassword
POSTGRES_USER: postgres
POSTGRES_DB: puppies_app
sharedbox:
image: busybox
volumes:
- /var/www
- /var/run
redis_dev:
image: redis
proxy:
image: puppies_nginx_development
build:
context: ./nginx
dockerfile: Dockerfile # we mean the ./nginx/Dockerfile
volumes:
- ./logs:/var/log
volumes_from:
- sharedbox
ports:
- "80:80"
depends_on:
- puppies_web
puppies_web:
image: puppies_app_development
build:
context: ./puppies
dockerfile: Dockerfile.development
environment: &app_server_enviroment_vars
CONTAINER_ROLE: 'app_server'
RAILS_ENV: production
MAX_THREADS: 2
WEB_CONCURRENCY: 1
SECRET_KEY_BASE: 19d07059ab81ff584bd8fd7be03ed765c63f5f4c3518d05f39b41c7152134e294b2f09cbf5d925045caab0ef6475862fc42c8e6b35d63e353a1472057e90f8c4
REL_DATABASE_PASSWORD: mysecretlocalpassword
REL_DATABASE_USERNAME: postgres
REL_DATABASE_DATABASE: puppies_app
REL_DATABASE_HOST: db_dev
REL_DATABASE_PORT: 5432
REDIS_HOST: redis_dev
REDIS_PORT: 6379
REDIS_DB_ID: 0
volumes:
- ./logs:/app/log
volumes_from:
- sharedbox
links:
- db_dev
- redis_dev
puppies_bg_worker:
image: puppies_app_development
environment:
<<: *app_server_enviroment_vars
CONTAINER_ROLE: 'bg_worker'
MAX_THREADS: 5 # Sidekiq threads, watch out so you don't run out of DB connection pool
volumes:
- ./logs:/app/log
volumes_from:
- sharedbox
links:
- db_dev
- redis_dev
depends_on:
- puppies_web