version: '3' services: #Nginx Service oauth-nginx: image: nginx:alpine container_name: oauth-nginx restart: unless-stopped tty: true ports: - "1080:80" - "1043:443" volumes: - ./:/var/www - ./nginx/conf.d/:/etc/nginx/conf.d/ - ./certbot/www:/var/www/certbot/:ro - ./certbot/conf/:/etc/nginx/ssl/:ro networks: - app-network #----------------------------------------------------------------------------- #PHP Service oauthgk: image: oauthgk container_name: oauthgk build: context: . dockerfile: ./php/Dockerfile restart: unless-stopped tty: true working_dir: /var/www volumes: - ./:/var/www - ./php/local.ini:/usr/local/etc/php/conf.d/local.ini networks: - app-network # ============================================================================ # docker compose run --rm certbot renew certbot: image: certbot/certbot:latest volumes: - ./certbot/www/:/var/www/certbot/:rw - ./certbot/conf/:/etc/letsencrypt/:rw #------------------------------------------------------------------------------- #Docker Networks networks: app-network: name: auth_net driver: bridge # external: true