-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
54 lines (54 loc) · 1.04 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
version: "3"
services:
backend:
env_file: .env
build: backend/
ports:
- "3000:3000"
depends_on:
- postgres
- elasticsearch
- mongo
- redis
links:
- postgres
- elasticsearch
- mongo
- redis
frontend:
env_file: .env
build: frontend/
ports:
- "8080:80"
links:
- backend
mongo:
env_file: .env
hostname: mongo
image: mongo
ports:
- "27017:27017"
redis:
env_file: .env
hostname: redis
image: redis:6.0.6-alpine
ports:
- "6379:6379"
elasticsearch:
env_file: .env
hostname: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.8.1
ports:
- "9200:9200"
- "9300:9300"
environment:
- discovery.type=single-node
postgres:
image: postgres:10-alpine
env_file: .env
ports:
- "${POSTGRES_PORT}:${POSTGRES_PORT}"
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}