-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
61 lines (55 loc) · 1.07 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: "2"
volumes:
assets:
external: false
db-data:
external: false
db-redis:
external : false
services:
https-portal:
build: ./https-portal/
ports:
- '80:80'
- '443:443'
restart: always
environment:
DOMAINS: 'www.abhinavnepal.com -> http://dockerhost:3000, abhinavnepal.com => www.abhinavnepal.com'
STAGE: 'production'
volumes:
- assets:/usr/share/nginx/html
prod_db:
image: postgres:9.6-alpine
env_file:
- .env.prod
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
redis:
image: redis:6.0-alpine
volumes:
- db-redis:/var/lib/redis/data
sidekiq:
build: .
command: bundle exec sidekiq
env_file:
- .env.prod
depends_on:
- redis
volumes:
- .:/usr/src/app
prod_app:
build:
context: .
dockerfile: Dockerfile.prod
env_file:
- .env.prod
ports:
- "3000:3000"
depends_on:
- prod_db
- https-portal
- sidekiq
volumes:
- assets:/usr/share/nginx/html