-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
79 lines (76 loc) · 1.9 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
# Run using `docker-compose up`
version: "3"
services:
app:
image: openlegaldata/oldp:latest
#build: .
# container_name: oldp_app
ports:
- "8000:8000"
environment:
- DJANGO_CONFIGURATION=Dev
- DJANGO_SECRET_KEY=change_this_value
- DJANGO_REDIS_URL=redis://cache:6379/1
- DJANGO_CACHE_DISABLE=1
- DJANGO_ELASTICSEARCH_URL=http://search:9200/
- DATABASE_URL=mysql://oldp:oldp@db/oldp
volumes:
- ./docker/data/static:/app/oldp/assets/static
- ./docker/data/workingdir:/app/workingdir
- ./docker/data/media:/app/media
- ./docker/data/logs:/app/logs
depends_on:
- db
- search
- cache
networks:
- db_network
- search_network
- cache_network
db:
ports:
# Make accessible by host machine
- "3306:3306"
# container_name: oldp_db
image: mariadb
volumes:
# needs chmod 777
- ./docker/data/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=oldp
- MYSQL_USER=oldp
- MYSQL_PASSWORD=oldp
networks:
- db_network
search:
ports:
# Make accessible by host machine
- "9200:9200"
# container_name: oldp_search 5.6.0
image: docker.elastic.co/elasticsearch/elasticsearch:6.7.0
environment:
- cluster.name=oldp
- cluster.routing.allocation.disk.threshold_enabled=false
- http.host=0.0.0.0
- transport.host=127.0.0.1
- xpack.security.enabled=false
volumes:
# chmod 777 the es_data directory so ES can write
- ./docker/data/es:/usr/share/elasticsearch/data
networks:
- search_network
cache:
#container_name: oldp_cache
ports:
- "6379:6379"
image: redis:4.0.5-alpine
networks:
- cache_network
networks:
db_network:
driver: bridge
search_network:
driver: bridge
cache_network:
driver: bridge