forked from github-education-resources/classroom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (36 loc) · 1.23 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
version: '2.1'
services:
elasticsearch:
container_name: "classroom_elasticsearch"
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
ports:
- "127.0.0.1:9337:9300"
- "127.0.0.1:9227:9200"
volumes:
- ~/.docker-volumes/education/classroom/elasticsearch/data/:/usr/share/elasticsearch/data
- ~/.docker-volumes/education/classroom/elasticsearch/logs/:/user/share/elasticsearch/logs
memcached:
container_name: "classroom_memcached"
image: memcached:1.4.26-alpine
ports:
- "127.0.0.1:22322:11211"
postgresql:
container_name: "classroom_postgresql"
image: postgres:9.4.10-alpine
ports:
- "127.0.0.1:2345:5432"
restart: always
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
volumes:
- ~/.docker-volumes/education/classroom/postgresql/data:/var/lib/postgresql/data
- ~/.docker-volumes/education/classroom/postgresql/logs:/var/log/postgresql
redis:
container_name: "classroom_redis"
image: redis:3.2.4-alpine
ports:
- "127.0.0.1:9736:6379"
volumes:
- ~/.docker-volumes/education/classroom/redis/data/:/var/lib/redis
- ~/.docker-volumes/education/classroom/redis/logs/:/var/log/redis