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,3 +1,5 @@
|
|||||||
|
version: '3.4'
|
||||||
|
services:
|
||||||
mongo:
|
mongo:
|
||||||
image: mongo:3.4.2
|
image: mongo:3.4.2
|
||||||
container_name: mongo
|
container_name: mongo
|
||||||
@@ -7,18 +9,21 @@ 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
|
||||||
@@ -30,6 +35,7 @@ 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
|
||||||
@@ -37,6 +43,7 @@ elasticproxy:
|
|||||||
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
|
||||||
@@ -53,6 +60,7 @@ 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
|
||||||
@@ -72,6 +80,7 @@ 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
|
||||||
@@ -87,6 +96,7 @@ 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
|
||||||
@@ -101,6 +111,7 @@ celery_beat:
|
|||||||
- mongo
|
- mongo
|
||||||
- redis
|
- redis
|
||||||
- rabbit
|
- rabbit
|
||||||
|
|
||||||
# notifserv:
|
# notifserv:
|
||||||
# container_name: notifserv
|
# container_name: notifserv
|
||||||
# image: armadillica/pillar-notifserv:cd8fa678436563ac3b800b2721e36830c32e4656
|
# image: armadillica/pillar-notifserv:cd8fa678436563ac3b800b2721e36830c32e4656
|
||||||
@@ -111,6 +122,7 @@ celery_beat:
|
|||||||
# VIRTUAL_HOST: https://cloud.blender.org/notifications*,http://pillar-web/notifications*
|
# VIRTUAL_HOST: https://cloud.blender.org/notifications*,http://pillar-web/notifications*
|
||||||
# VIRTUAL_HOST_WEIGHT: 20
|
# VIRTUAL_HOST_WEIGHT: 20
|
||||||
# FORCE_SSL: true
|
# FORCE_SSL: true
|
||||||
|
|
||||||
grafista:
|
grafista:
|
||||||
image: armadillica/grafista:latest
|
image: armadillica/grafista:latest
|
||||||
container_name: grafista
|
container_name: grafista
|
||||||
@@ -118,6 +130,7 @@ grafista:
|
|||||||
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
|
||||||
@@ -129,6 +142,7 @@ 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
|
||||||
|
Reference in New Issue
Block a user