-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathdocker-compose.yaml
65 lines (64 loc) · 1.42 KB
/
docker-compose.yaml
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
version: "3"
services:
api:
image: wsbackend-api:latest
hostname: ws-api
build:
context: .
dockerfile: api.dockerfile
links:
- elasticsearch
- postgres
- rabbitmq
ports:
- "8000:8000"
tasknode:
image: wsbackend-tasknode:latest
build:
context: .
dockerfile: tasknode.dockerfile
links:
- elasticsearch
- postgres
- rabbitmq
redis:
image: redis:latest
hostname: ws-redis
elasticsearch:
image: elasticsearch:latest
hostname: ws-elasticsearch
volumes:
- "./data/elasticsearch:/usr/share/elasticsearch/data"
ports:
- "9200:9200"
environment:
- ES_JAVA_OPTS=-Xms1024m -Xmx1024m
rabbitmq:
image: rabbitmq:3-management
hostname: ws-rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=wsuser
- RABBITMQ_DEFAULT_PASS=wspassword
- RABBITMQ_DEFAULT_VHOST=wsvhost
frontend:
image: wsfrontend:latest
hostname: ws-frontend
build:
context: .
dockerfile: frontend.dockerfile
ports:
- "8001:80"
links:
- elasticsearch
- postgres
postgres:
image: postgres:alpine
hostname: ws-postgres
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_DB=websight
volumes:
- "./data/postgres:/var/lib/postgresql/data"