forked from samuelclay/NewsBlur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (75 loc) · 1.71 KB
/
docker-compose.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
---
version: '2'
services:
newsblur:
build:
context: .
dockerfile: docker/Dockerfile
image: newsblur
links:
- mongo
- postgres
- elasticsearch
- redis
ports:
- '8000:8000'
networks:
- front
- back
postgres:
image: postgres:9
environment:
- POSTGRES_USER=newsblur
- POSTGRES_PASSWORD=newsblur
ports:
- '5432:5432'
volumes:
- ./docker/postgres:/docker-entrypoint-initdb.d
- ./docker/volumes/postgres:/var/lib/postgresql/data
networks:
- back
redis:
image: redis:3
ports:
- '6379:6379'
volumes:
- ./docker/volumes/redis:/data
- ./config/redis.conf:/usr/local/etc/redis_server.conf
- ./config/redis_docker.conf:/etc/redis_server.conf
- ./docker/volumes/redis.var.lib:/var/lib/redis
command: /usr/local/bin/redis-server /usr/local/etc/redis_server.conf
networks:
- back
elasticsearch:
image: elasticsearch:1.7
ports:
- '9200:9200'
volumes:
- ./docker/volumes/elasticsearch:/usr/share/elasticsearch/data
networks:
- back
mongo:
image: mongo:3.2
ports:
- '27017:27017'
command: mongod --smallfiles
volumes:
- ./docker/volumes/mongo:/data/db
networks:
- back
networks:
front:
driver: bridge
# Note: below is optional, if you have an existing ingress bridge
# config:
# external:
# name: ingress
back:
driver: bridge
ipam:
driver: default
# Note: below is optional, if you'd like the back bridge to use fewer IP addresses
# config:
# - subnet: 172.16.128.0/24
# gateway: 172.16.128.1
internal: true