services: app: build: context: . dockerfile: Dockerfile image: sms-gateway-app container_name: sms-gateway-app restart: unless-stopped working_dir: /var/www volumes: - .:/var/www networks: - sms-gateway-network ports: - "9000:9000" webserver: image: nginx:alpine container_name: sms-gateway-webserver restart: unless-stopped ports: - "80:80" volumes: - .:/var/www - ./nginx.conf:/etc/nginx/conf.d/default.conf networks: - sms-gateway-network db: image: mysql:8.0 container_name: sms-gateway-db restart: unless-stopped environment: MYSQL_DATABASE: sms-gateway MYSQL_ROOT_PASSWORD: root volumes: - db_data:/var/lib/mysql networks: - sms-gateway-network ports: - "3306:3306" networks: sms-gateway-network: driver: bridge volumes: db_data: