Just started with Docker and found the Linuxserver containers + docker-compose.
Does somebody know how I add the network within docker compose? (used portainer to add an container to the network so far)
I got the feeling that I’m close…
---
version: "2"
networks:
default:
external:
name: hassio
services:
mariadb:
image: linuxserver/mariadb
container_name: mariadb
# networks:
# - hassio
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=lsof23
- TZ=Europe/London
- MYSQL_DATABASE=test
- MYSQL_USER=test
- MYSQL_PASSWORD=EwACf
volumes:
- /usr/share/hassio/share/docker/mariadb-nextcloud/:/config
ports:
- 3306:3306
restart: unless-stopped
thanks in advance
https://github.com/docker/compose/issues/3845#issuecomment-279732773