services:app:image:supersoftware/app:latest# image, which will pull the :latest version of the applicationrestart:unless-stopped# The container will always restart unless it is explicitly stoppedcontainer_name:"supersoftware-app"# app name in networkports:# Maps port 80 on the host to port 80 on the container, making the application accessible via the host's port 80 # <Host Port>:<Container Port>-"80:80"networks:-"lan"# An external network allowing access to other containers in the same network-"pan"# A dedicated network specific to this setupvolumes:-./data:/data# "./" creates the directory inside this folder-/etc/localtime:/etc/localtime:rodb:image:supersoftware/db:latestrestart:unless-stoppedcontainer_name:"supersoftware-db"networks:-"pan"volumes:-./var_lib_spdb:/var/lib/spdb-/etc/localtime:/etc/localtime:ro#make sure only read-onlyenviroment:SPDB_HOSTNAME:spdb# simple names or config is ok in docker-compose.yml fileSPDB_URL:http://superdb.local/db/# simple config ok in docker-compose.yml fileSPDB_USER:${SPDB_USER}# everything with credentials in .env fileSPDB_PWD:${SPDB_PWD}# look .env filenetworks:lan:external:true# when access to other containerspan:# for dedicated network in container better than app_default