I wrote this docker file for my project
version: "3,9"
services:
postgres:
container_name: ${POSTGRES_CONTAINER_NAME}
image: ${POSTGRES_IMAGE}
volumes:
- ./storage/postgres:/var/lib/postgres/data
env_file:
- .env
networks:
- teratech-network
minio:
container_name: ${MINIO_CONTAINER_NAME}
image: ${MINIO_IMAGE}
env_file:
- .env
volumes:
- /home/tony/Desktop/teratech\ services/storage/minio:/data/minio
ports:
- "9001:9001"
networks:
- teratech-network
rabbitmq:
container_name: ${RABBITMQ_CONTAINER_NAME}
image: ${RABBITMQ_IMAGE}
env_file:
- .env
networks:
- teratech-network
nginx:
container_name: teratech-nginx
image: nginx:stable-alpine3.17-slim
volumes:
- ./conf/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- 80:80
networks:
- teratech-network
networks:
teratech-network:
and this is my project tree:
my project
βββ conf
β βββ nginx
β βββ nginx.conf
βββ docker-compose.yaml
βββ storage
βββ minio
βββ postgres
but volumes donβt save.
how can I fix it?