-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (52 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
53 lines (52 loc) · 1.18 KB
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
version: '3.4'
services:
cache:
restart: always
image: memcached:1.5
expose:
- "11211"
db:
environment:
POSTGRES_DB: app_db
POSTGRES_USER: app_user
POSTGRES_PASSWORD: changeme
restart: always
image: postgres:11-alpine
expose:
- "5432"
app:
environment:
DATABASE_URL: postgres://app_user:changeme@db/app_db
CACHE_HOST: cache:11211
ENVIRONMENT: local
DJANGO_SECRET_KEY: insecure-dev-key
DOMAIN: localhost
ELASTICSEARCH_URL: elasticsearch:9200
build:
context: .
dockerfile: ./Dockerfile
links:
- db:db
ports:
- "8000:8000"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.4.2
container_name: elasticsearch
environment:
- node.name=elasticsearch
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es02,es03
- cluster.initial_master_nodes=elasticsearch
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "9200:9200"
- "9300:9300"
redis:
image: redis:5-alpine
ports:
- "6379:6379"