Upgraded docker-compose.yaml file format from 1 to 3.4
This allows us to set logging options, which weren't available in version 1. I've also added newlines around each service definition, and made the formatting consistent across the entire file (using align-yaml, one of the tools of the atom-beautify plugin for Atom).
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
mongo:
|
version: '3.4'
|
||||||
|
services:
|
||||||
|
mongo:
|
||||||
image: mongo:3.4.2
|
image: mongo:3.4.2
|
||||||
container_name: mongo
|
container_name: mongo
|
||||||
restart: always
|
restart: always
|
||||||
@@ -7,19 +9,22 @@ mongo:
|
|||||||
- /data/storage/db-bak:/data/db-bak # for backing up stuff etc.
|
- /data/storage/db-bak:/data/db-bak # for backing up stuff etc.
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:27017:27017"
|
- "127.0.0.1:27017:27017"
|
||||||
redis:
|
|
||||||
|
redis:
|
||||||
image: redis:3.2.8
|
image: redis:3.2.8
|
||||||
container_name: redis
|
container_name: redis
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:6379:6379"
|
- "127.0.0.1:6379:6379"
|
||||||
rabbit:
|
|
||||||
|
rabbit:
|
||||||
image: rabbitmq:3.6.10
|
image: rabbitmq:3.6.10
|
||||||
container_name: rabbit
|
container_name: rabbit
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:5672:5672"
|
- "127.0.0.1:5672:5672"
|
||||||
elastic:
|
|
||||||
|
elastic:
|
||||||
image: armadillica/elasticsearch:latest
|
image: armadillica/elasticsearch:latest
|
||||||
container_name: elastic
|
container_name: elastic
|
||||||
restart: always
|
restart: always
|
||||||
@@ -30,14 +35,16 @@ elastic:
|
|||||||
- "127.0.0.1:9200:9200"
|
- "127.0.0.1:9200:9200"
|
||||||
environment:
|
environment:
|
||||||
ES_JAVA_OPTS: "-Xms256m -Xmx256m"
|
ES_JAVA_OPTS: "-Xms256m -Xmx256m"
|
||||||
elasticproxy:
|
|
||||||
|
elasticproxy:
|
||||||
image: armadillica/elasticproxy:latest
|
image: armadillica/elasticproxy:latest
|
||||||
container_name: elasticproxy
|
container_name: elasticproxy
|
||||||
restart: always
|
restart: always
|
||||||
command: /elasticproxy -elastic http://elastic:9200/
|
command: /elasticproxy -elastic http://elastic:9200/
|
||||||
links:
|
links:
|
||||||
- elastic
|
- elastic
|
||||||
kibana:
|
|
||||||
|
kibana:
|
||||||
image: armadillica/kibana:latest
|
image: armadillica/kibana:latest
|
||||||
container_name: kibana
|
container_name: kibana
|
||||||
restart: always
|
restart: always
|
||||||
@@ -53,7 +60,8 @@ kibana:
|
|||||||
NODE_OPTIONS: "--max-old-space-size=200"
|
NODE_OPTIONS: "--max-old-space-size=200"
|
||||||
links:
|
links:
|
||||||
- elasticproxy
|
- elasticproxy
|
||||||
blender_cloud:
|
|
||||||
|
blender_cloud:
|
||||||
image: armadillica/blender_cloud:latest
|
image: armadillica/blender_cloud:latest
|
||||||
container_name: blender_cloud
|
container_name: blender_cloud
|
||||||
restart: always
|
restart: always
|
||||||
@@ -72,7 +80,8 @@ blender_cloud:
|
|||||||
- mongo
|
- mongo
|
||||||
- redis
|
- redis
|
||||||
- rabbit
|
- rabbit
|
||||||
celery_worker:
|
|
||||||
|
celery_worker:
|
||||||
image: armadillica/blender_cloud:latest
|
image: armadillica/blender_cloud:latest
|
||||||
entrypoint: /celery-worker.sh
|
entrypoint: /celery-worker.sh
|
||||||
container_name: celery_worker
|
container_name: celery_worker
|
||||||
@@ -87,7 +96,8 @@ celery_worker:
|
|||||||
- mongo
|
- mongo
|
||||||
- redis
|
- redis
|
||||||
- rabbit
|
- rabbit
|
||||||
celery_beat:
|
|
||||||
|
celery_beat:
|
||||||
image: armadillica/blender_cloud:latest
|
image: armadillica/blender_cloud:latest
|
||||||
entrypoint: /celery-beat.sh
|
entrypoint: /celery-beat.sh
|
||||||
container_name: celery_beat
|
container_name: celery_beat
|
||||||
@@ -101,24 +111,27 @@ celery_beat:
|
|||||||
- mongo
|
- mongo
|
||||||
- redis
|
- redis
|
||||||
- rabbit
|
- rabbit
|
||||||
# notifserv:
|
|
||||||
# container_name: notifserv
|
# notifserv:
|
||||||
# image: armadillica/pillar-notifserv:cd8fa678436563ac3b800b2721e36830c32e4656
|
# container_name: notifserv
|
||||||
# restart: always
|
# image: armadillica/pillar-notifserv:cd8fa678436563ac3b800b2721e36830c32e4656
|
||||||
# links:
|
# restart: always
|
||||||
# - mongo
|
# links:
|
||||||
# environment:
|
# - mongo
|
||||||
# VIRTUAL_HOST: https://cloud.blender.org/notifications*,http://pillar-web/notifications*
|
# environment:
|
||||||
# VIRTUAL_HOST_WEIGHT: 20
|
# VIRTUAL_HOST: https://cloud.blender.org/notifications*,http://pillar-web/notifications*
|
||||||
# FORCE_SSL: true
|
# VIRTUAL_HOST_WEIGHT: 20
|
||||||
grafista:
|
# FORCE_SSL: true
|
||||||
|
|
||||||
|
grafista:
|
||||||
image: armadillica/grafista:latest
|
image: armadillica/grafista:latest
|
||||||
container_name: grafista
|
container_name: grafista
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- /data/git/grafista:/data/git/grafista:ro
|
- /data/git/grafista:/data/git/grafista:ro
|
||||||
- /data/storage/grafista:/data/storage/grafista
|
- /data/storage/grafista:/data/storage/grafista
|
||||||
letsencrypt:
|
|
||||||
|
letsencrypt:
|
||||||
image: armadillica/picohttp:latest
|
image: armadillica/picohttp:latest
|
||||||
container_name: letsencrypt
|
container_name: letsencrypt
|
||||||
restart: always
|
restart: always
|
||||||
@@ -129,7 +142,8 @@ letsencrypt:
|
|||||||
VIRTUAL_HOST_WEIGHT: 20
|
VIRTUAL_HOST_WEIGHT: 20
|
||||||
volumes:
|
volumes:
|
||||||
- /data/letsencrypt:/data/letsencrypt
|
- /data/letsencrypt:/data/letsencrypt
|
||||||
haproxy:
|
|
||||||
|
haproxy:
|
||||||
image: dockercloud/haproxy:1.5.3
|
image: dockercloud/haproxy:1.5.3
|
||||||
container_name: haproxy
|
container_name: haproxy
|
||||||
restart: always
|
restart: always
|
||||||
|
Reference in New Issue
Block a user