services: web: image: itzg/rcon environment: RWA_USERNAME: admin RWA_PASSWORD: admin RWA_ADMIN: "TRUE" # is referring to the hostname of 'mc' compose service below RWA_RCON_HOST: mc # needs to match the RCON_PASSWORD configured for the container RWA_RCON_PASSWORD: "demo" ports: - "4326:4326" - "4327:4327" mc: image: itzg/minecraft-server ports: - "25565:25565" environment: EULA: "TRUE" # password needs to be explicitly set, # otherwise random one is generated at each startup RCON_PASSWORD: "demo"