File: docker-compose.yml

package info (click to toggle)
podman-compose 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,996 kB
  • sloc: python: 10,946; sh: 107; javascript: 48; makefile: 13
file content (20 lines) | stat: -rw-r--r-- 773 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
version: "3.7"
services:
    variables:
        image: busybox
        command: ["/bin/busybox", "sh", "-c", "export | grep EXAMPLE"]
        environment:
            EXAMPLE_VARIABLE: "Host user: $EXAMPLE_VARIABLE_USER"
            EXAMPLE_BRACES: "Host user: ${EXAMPLE_VARIABLE_USER}"
            EXAMPLE_COLON_DASH_DEFAULT: ${NOT_A_VARIABLE:-My default}
            EXAMPLE_DASH_DEFAULT: ${NOT_A_VARIABLE-My other default}
            EXAMPLE_DOT_ENV: $DOT_ENV_VARIABLE
            EXAMPLE_LITERAL: This is a $$literal
            EXAMPLE_EMPTY: $NOT_A_VARIABLE
    labels_test:
        image: busybox
        labels:
            - "$TEST_LABELS=test_labels"
            - test.${TEST_LABELS}=${TEST_LABELS}
            - "${TEST_LABELS}.test2=test2(`${TEST_LABELS}`)"