services: app: build: . volume: - static:/usr/src/app/static - media:/usr/src/app/media env_file: .env proxy: image: nginx:latest volume: - type: volume source: static target: /usr/share/nginx/html/static read-only: true volume: nocopy: true - type: volume source: media target: /usr/share/nginx/html/media read-only: true volume: nocopy: true ports: - "8080:80" db: image: mysql volume: - mysql_db:/var/lib/mysql env_file: .env volumes: static: media: mysql_db: