-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcompose.yml
More file actions
37 lines (33 loc) · 815 Bytes
/
compose.yml
File metadata and controls
37 lines (33 loc) · 815 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
---
# This Docker composition file is used to build and test the container
name: skeleton-docker
secrets:
quote_txt:
file: ./src/secrets/quote.txt
services:
example:
# Run the container normally
build:
# VERSION must be specified on the command line:
# e.g., --build-arg VERSION=0.0.1
context: .
dockerfile: Dockerfile
environment:
- ECHO_MESSAGE=Hello World from Docker Compose!
image: cisagov/example
init: true
ports:
- mode: host
protocol: tcp
published: "8421"
target: 8421
restart: "no"
secrets:
- source: quote_txt
target: quote.txt
example-version:
# Run the container to collect version information
command: --version
image: cisagov/example
init: true
restart: "no"