| 1 | version: "2" |
| 2 | services: |
| 3 | |
| 4 | redis: |
| 5 | image: redis:alpine |
| 6 | ports: |
| 7 | - "6379" |
| 8 | environment: |
| 9 | - SECRET_KEY=aabbcc |
| 10 | - ENV_IS_SET |
| 11 | |
| 12 | frontend: |
| 13 | image: busybox |
| 14 | #entrypoint: [] |
| 15 | command: ["/bin/busybox", "httpd", "-f", "-p", "8080"] |
| 16 | working_dir: / |
| 17 | environment: |
| 18 | SECRET_KEY2: aabbcc |
| 19 | ENV_IS_SET2: |
| 20 | ports: |
| 21 | - "8080" |
| 22 | links: |
| 23 | - redis:myredis |
| 24 | labels: |
| 25 | my.label: my_value |
| 26 | |
| 27 | #tmpfs: /run |
| 28 | #tmpfs: |
| 29 | # - /run |
| 30 | # - /tmp |
| 31 | #user: postgresql |
| 32 | #working_dir: /code |
| 33 | #domainname: foo.com |
| 34 | #hostname: foo |
| 35 | #ipc: host |
| 36 | #mac_address: 02:42:ac:11:65:43 |
| 37 | #privileged: true |
| 38 | #read_only: true |
| 39 | #shm_size: 64M |
| 40 | #stdin_open: true |
| 41 | #tty: true |