version: '3.5' services: #Nginx Service api-service-nginx: image: nginx:alpine container_name: api-service-nginx restart: unless-stopped tty: true ports: - "11008:80" - "11043:443" volumes: - ./:/var/www - ./nginx/conf.d:/etc/nginx/conf.d - ./nginx/nginx.conf:/etc/nginx/nginx.conf - ./certbot/www:/var/www/certbot/:ro - ./certbot/conf/:/etc/nginx/ssl/:ro - ./certbot/htpasswd/:/etc/nginx/htpasswd/ networks: - app-network - app-network-2 - app-network-rabbit - app-network-mysql #----------------------------------------------------------------------------- #PHP Service api-service-php: image: api-service-php container_name: api-service-php build: context: . dockerfile: ./Dockerfile restart: unless-stopped tty: true working_dir: /var/www volumes: - ./:/var/www - ./php/local.ini:/usr/local/etc/php/conf.d/local.ini - ./se-cron:/etc/crontab - ./php-fpm/www.conf:/usr/local/etc/php-fpm.d/www.conf networks: - app-network - app-network-2 - app-network-rabbit - app-network-mysql certbot: image: certbot/certbot:latest volumes: - ./certbot/www/:/var/www/certbot/:rw - ./certbot/conf/:/etc/letsencrypt/:rw #------------------------------------------------------------------------------- #Docker Networks networks: app-network: name: gk.internal external: true app-network-2: name: speech external: true app-network-rabbit: name: gk_rabbit.internal external: true app-network-mysql: name: gk_mysql_sunday external: true default: name: service-se-api-net driver: bridge volumes: service-api-data: