-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.prod.yml
83 lines (78 loc) · 1.71 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '2'
services:
app:
build: docker/app
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
environment:
- RAILS_ENV=production
- NODE_ENV=production
- UMAKADATA_DATABASE_HOST=db
- UMAKADATA_REDIS_HOST=redis
volumes:
- .:/app
- app_bundle:/usr/local/bundle
- app_node_modules:/app/node_modules
- app_public_assets:/app/public/assets
- app_public_packs:/app/public/packs
- app_tmp:/app/tmp
- app_www:/var/www
depends_on:
- db
- redis
web:
image: nginx:1.17
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- app_www:/var/www
ports:
- 80:80
depends_on:
- app
db:
image: postgres:11.4
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
environment:
- POSTGRES_USER=${UMAKADATA_DATABASE_USERNAME}
- POSTGRES_PASSWORD=${UMAKADATA_DATABASE_PASSWORD}
volumes:
- db_data:/var/lib/postgresql/data
redis:
image: redis:5.0
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
command: redis-server --appendonly yes
volumes:
- redis_data:/data
volumes:
db_data:
driver: local
redis_data:
driver: local
app_bundle:
driver: local
app_node_modules:
driver: local
app_public_assets:
driver: local
app_public_packs:
driver: local
app_tmp:
driver: local
app_www:
driver: local