Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (64 sloc) 1.42 KB
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"