Skip to content

Commit

Permalink
Merge pull request #6 from anthraxn8b/patch-1
Browse files Browse the repository at this point in the history
Added "secrets" as toplevel and inside "service order".
  • Loading branch information
lindt authored Jul 27, 2019
2 parents 9ceae3c + 9972bd4 commit 2f02ca8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compose_format/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class ComposeFormat:
TOPLEVEL_ORDER = ['version', 'services', 'volumes', 'networks']
TOPLEVEL_ORDER = ['version', 'services', 'volumes', 'networks', 'secrets']
SERVICE_ORDER = [
'image', 'command', 'entrypoint', 'container_name',
'links', 'volumes_from', 'volumes', 'volume_driver', 'tmpfs',
Expand All @@ -17,6 +17,7 @@ class ComposeFormat:
'read_only',
'healthcheck',
'env_file', 'environment',
'secrets',
'cpu_shares', 'cpu_quota', 'cpuset', 'domainname', 'hostname', 'ipc',
'mac_address', 'mem_limit', 'memswap_limit', 'privileged', 'shm_size',
'depends_on', 'extends', 'external_links',
Expand Down

0 comments on commit 2f02ca8

Please sign in to comment.