forked from angristan/feedbin-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-example.yml
149 lines (135 loc) · 2.99 KB
/
docker-compose-example.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
version: '2.2'
volumes:
feedbin_redis:
feedbin_db:
feedbin_elasticsearch:
feedbin_minio:
feedbin_caddy:
services:
feedbin-caddy:
image: abiosoft/caddy:1.0.3
volumes:
- feedbin_caddy:/etc/ssl/caddy
- ./caddy/Caddyfile:/etc/Caddyfile:ro
env_file:
- ./.env
ports:
- 80:80
- 443:443
- 2015:2015
links:
- feedbin-web:feedbin-web
- feedbin-minio:minio
restart: always
feedbin-minio:
image: minio/minio
volumes:
- feedbin_minio:/data
env_file:
- ./.env
command: server /data
ports:
- 127.0.0.1:9000:9000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
restart: always
feedbin-web:
build: .
ports:
- 127.0.0.1:3000:3000
environment:
PORT: 3000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
env_file:
- ./.env
command: bundle exec rails s --port 3000 --binding 0.0.0.0
links:
- feedbin-redis:redis
- feedbin-postgres:postgres
- feedbin-elasticsearch:elasticsearch
- feedbin-memcached:memcached
- feedbin-minio:minio
restart: always
mem_limit: 512m
feedbin-workers:
build: .
env_file:
- ./.env
command: foreman start
links:
- feedbin-redis:redis
- feedbin-postgres:postgres
- feedbin-elasticsearch:elasticsearch
- feedbin-memcached:memcached
- feedbin-minio:minio
restart: always
mem_limit: 512m
feedbin-elasticsearch:
image: elasticsearch:2.4
ports:
- 127.0.0.1:9200:9200
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200"]
volumes:
- feedbin_elasticsearch:/usr/share/elasticsearch/data
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
restart: always
feedbin-refresher:
build: ./feedbin-refresher
env_file:
- ./.env
links:
- feedbin-redis:feedbin-redis
restart: always
mem_limit: 512m
feedbin-image:
build: ./feedbin-image
env_file:
- ./.env
links:
- feedbin-redis:redis
restart: always
mem_limit: 512m
camo:
image: increments/camo
environment:
- PORT=8081
env_file:
- ./.env
ports:
- 127.0.0.1:8081:8081
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8081"]
restart: always
feedbin-memcached:
image: memcached:1.5
restart: always
feedbin-redis:
image: redis:5
command: "redis-server --appendonly yes"
volumes:
- feedbin_redis:/data
restart: always
feedbin-postgres:
image: postgres:10
env_file:
- ./.env
volumes:
- feedbin_db:/var/lib/postgresql/data
restart: always
mem_limit: 512m
feedbin-extract:
build: ./feedbin-extract
env_file:
- ./.env
restart: always
mem_limit: 512m