感觉应该是占位符, 但是, 如果不改他, 直接运行了, 具体的值是什么?
譬如:
version: '3'
volumes:
production_postgres_data: {}
production_postgres_data_backups: {}
production_traefik: {}
redis:
image: redis:5.0
awscli:
build:
context: .
dockerfile: ./compose/production/aws/Dockerfile
env_file:
- ./.envs/.production/.django
volumes:
- production_postgres_data_backups:/backups
注意:
volumes:
- production_postgres_data_backups:/backups
backups 具体指向的是哪里?
1
mritd 2019-06-05 19:28:02 +08:00 via iPhone
/var/lib/docker/volumes/NAME/_data
|