services: teamspeak: image: teamspeak restart: unless-stopped depends_on: - db environment: TS3SERVER_DB_PLUGIN: ts3db_mariadb TS3SERVER_DB_SQLCREATEPATH: create_mariadb TS3SERVER_DB_HOST: db TS3SERVER_DB_WAITUNTILREADY: 30 TS3SERVER_LICENSE: accept volumes: - ./data/teamspeak:/var/ts3server db: image: mariadb restart: unless-stopped environment: MARIADB_RANDOM_ROOT_PASSWORD: "yes" volumes: - ./database:/var/lib/mysql