version: "3" services: nginx: container_name: nginx image: nginx build: nginx ports: - "443:443" volumes: - wordpress:/var/www/wordpress depends_on: - wordpress networks: - inception restart: always wordpress: container_name: wordpress image: wordpress build: wordpress volumes: - wordpress:/var/www/wordpress depends_on: - mariadb env_file: - .env networks: - inception restart: always mariadb: container_name: mariadb image: mariadb build: mariadb volumes: - mariadb:/data env_file: - .env networks: - inception restart: always volumes: wordpress: driver: local driver_opts: type: 'none' o: 'bind' device: '/home/cchauvet/data/wp-files/' mariadb: driver: local driver_opts: type: 'none' o: 'bind' device: '/home/cchauvet/data/wp-db/' networks: inception: driver: bridge