compose.yml
· 196 B · YAML
Brut
x-common-env: &common-env
env_file:
- .env
services:
svc1:
<<: *common-env
container_name: service_1
# ...
svc2:
<<: *common-env
container_name: service_2
# ...
| 1 | x-common-env: &common-env |
| 2 | env_file: |
| 3 | - .env |
| 4 | |
| 5 | services: |
| 6 | svc1: |
| 7 | <<: *common-env |
| 8 | container_name: service_1 |
| 9 | # ... |
| 10 | |
| 11 | svc2: |
| 12 | <<: *common-env |
| 13 | container_name: service_2 |
| 14 | # ... |