-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
63 lines (58 loc) · 1.61 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
version: "3.2"
services:
redis:
image: redis:alpine
networks:
- newsroom
mongo:
image: mongo:3.6
networks:
- newsroom
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
networks:
- newsroom
environment:
- discovery.type=single-node
server:
build: ./docker/server
ports:
- "5050:5050"
- "5150:5150"
networks:
- newsroom
volumes:
- ./dump:/opt/newsroom/dump
- ./newsroom/templates:/opt/newsroom/templates
- ./newsroom/static:/opt/newsroom/static
depends_on:
- elastic
- redis
- mongo
- client
environment:
- WEB_CONCURRENCY=2
- WEBPACK_SERVER_URL=http://client:8080
- WEBPACK_ASSETS_URL=http://localhost:8080
- MONGO_URI=mongodb://mongo/newsroom
- CONTENTAPI_MONGO_URI=mongodb://mongo/newsroom
- ELASTICSEARCH_URL=http://elastic:9200
- ELASTICSEARCH_INDEX=newsroom
- CELERY_BROKER_URL=redis://redis:6379/1
- REDIS_URL=redis://redis:6379/1
- DEFAULT_TIMEZONE=Europe/Prague
- SECRET_KEY=newsroom
- NEWSROOM_DEBUG=true
client:
build:
context: .
dockerfile: Dockerfile-client
ports:
- "8080:8080"
networks:
- newsroom
volumes:
- ./assets:/opt/client/assets
networks:
newsroom:
driver: bridge