-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcompose-dev.yaml
More file actions
41 lines (36 loc) · 856 Bytes
/
compose-dev.yaml
File metadata and controls
41 lines (36 loc) · 856 Bytes
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
---
name: admiral
secrets:
admiral_yaml:
file: ./secrets/admiral.yaml
mongo_yaml:
file: ./secrets/mongo.yaml
x-admiral-template: &admiral-template
build:
context: .
dockerfile: Dockerfile-admiral
image: admiral
init: true
environment:
ADMIRAL_CONFIG_FILE: /run/secrets/admiral.yaml
ADMIRAL_CONFIG_SECTION: dev-mode
ADMIRAL_WORKER_NAME: dev
secrets:
- source: admiral_yaml
target: admiral.yaml
- source: mongo_yaml
target: config.yaml
volumes:
- ./src/admiral:/usr/src/admiral/admiral
- ./tests:/home/cisa/tests
- ./examples:/home/cisa/examples
services:
celery-shell:
<<: *admiral-template
command: --interactive # drop into an ipython celery shell
bash:
<<: *admiral-template
entrypoint: /bin/sh
test:
<<: *admiral-template
entrypoint: pytest