Skip to content

Commit

Permalink
Alphabetize YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
king-alexander committed Jun 28, 2022
1 parent 92249e5 commit 683c4b9
Showing 1 changed file with 49 additions and 52 deletions.
101 changes: 49 additions & 52 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,91 +2,88 @@
version: "3.7"

secrets:
redis_conf:
file: ./secrets/redis.conf
admiral_yml:
file: ./secrets/admiral.yml
mongo_root_passwd_txt:
file: ./secrets/mongo-root-passwd.txt

x-admiral-template: &admiral-template
build:
context: .
dockerfile: Dockerfile-admiral
image: admiral
init: true
environment:
ADMIRAL_CONFIG_FILE: "/run/secrets/admiral.yml"
ADMIRAL_CONFIG_SECTION: dev-mode
ADMIRAL_WORKER_NAME: dev
secrets:
- source: admiral_yml
target: admiral.yml
volumes: # map for development only, comment out otherwise
- ./src/admiral:/usr/src/admiral/admiral
deploy:
mode: replicated
replicas: 6
redis_conf:
file: ./secrets/redis.conf

services:
redis:
image: "redis:alpine"
command:
- "redis-server"
- "/run/secrets/redis_conf"
ports:
- "6379:6379"
secrets:
- source: redis_conf

redis-commander:
hostname: redis-commander
image: rediscommander/redis-commander:latest
# build: .
restart: always
depends_on:
- redis
celery-flower:
environment:
- REDIS_HOSTS=default:redis:6379:0:fruitcake
# TODO: get this into the secrets raft
CELERY_BROKER_URL: "redis://:fruitcake@redis:6379/0"
image: crgwbr/docker-celery-flower
ports:
- "8082:8081"
- "5555:5555"

mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_DATABASE: certs
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD_FILE: /run/secrets/mongo_root_passwd_txt
image: mongo
restart: always
secrets:
- source: mongo_root_passwd_txt
volumes:
- ./init/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro

mongo-express:
image: mongo-express
restart: always
ports:
- 8083:8081
environment:
ME_CONFIG_MONGODB_SERVER: mongo
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
image: mongo-express
ports:
- 8083:8081
restart: always

celery-flower:
image: crgwbr/docker-celery-flower
redis:
command:
- "redis-server"
- "/run/secrets/redis_conf"
image: "redis:alpine"
ports:
- "6379:6379"
secrets:
- source: redis_conf

redis-commander:
depends_on:
- redis
environment:
# TODO: get this into the secrets raft
CELERY_BROKER_URL: "redis://:fruitcake@redis:6379/0"
- REDIS_HOSTS=default:redis:6379:0:fruitcake
hostname: redis-commander
image: rediscommander/redis-commander:latest
ports:
- "5555:5555"
- "8082:8081"
restart: always

x-admiral-template: &admiral-template
build:
context: .
dockerfile: Dockerfile-admiral
cert-worker:
<<: *admiral-template
environment:
ADMIRAL_CONFIG_SECTION: cert-worker
ADMIRAL_WORKER_NAME: cert

deploy:
mode: replicated
replicas: 6
environment:
ADMIRAL_CONFIG_FILE: "/run/secrets/admiral.yml"
ADMIRAL_CONFIG_SECTION: dev-mode
ADMIRAL_WORKER_NAME: dev
image: admiral
init: true
secrets:
- source: admiral_yml
target: admiral.yml
volumes: # map for development only, comment out otherwise
- ./src/admiral:/usr/src/admiral/admiral
scanner-worker:
<<: *admiral-template
environment:
Expand Down

0 comments on commit 683c4b9

Please sign in to comment.